Point search pipeline at Search2 table and *2 procs for v5 POC

Re-target all search reads, writes, and stored proc calls to dbo.Search2 /
SubmitSearch2 / StartSearch2 / CompleteSearch2 / ResetPartialSearches2 so
the POC can run side-by-side with prod against the same QA database
without contending on the Search table or its procs. Standalone deployment
SQL for the new table and procs lives in OLD/sql/ and must be run against
the target DB before the POC apps are started.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Joseph Doherty
2026-05-04 09:24:45 -04:00
parent c0bb86bace
commit 7e92e35991
7 changed files with 95 additions and 9 deletions
@@ -25,7 +25,7 @@ namespace DataModel.Process
s.SubmitDT,
s.StartDT,
s.EndDT
FROM dbo.Search s
FROM dbo.Search2 s
WHERE s.UserName = @userName
ORDER BY s.SubmitDT";
@@ -65,7 +65,7 @@ namespace DataModel.Process
s.SubmitDT,
s.StartDT,
s.EndDT
FROM dbo.Search s
FROM dbo.Search2 s
WHERE s.Status < 3
ORDER BY s.SubmitDT";
@@ -104,7 +104,7 @@ namespace DataModel.Process
s.StartDT,
s.EndDT,
s.Criteria as CriteriaJSON
FROM dbo.Search s
FROM dbo.Search2 s
WHERE s.ID = @id";
/// <summary>
@@ -143,7 +143,7 @@ namespace DataModel.Process
/// </summary>
private const string SQL_GET_SEARCH_RESULTS = @"
SELECT s.Results
FROM dbo.Search AS s
FROM dbo.Search2 AS s
WHERE s.ID = @id";
/// <summary>
@@ -187,7 +187,7 @@ namespace DataModel.Process
using (SqlConnection connection = GetConnection())
{
using (SqlCommand command = new SqlCommand("SubmitSearch", connection))
using (SqlCommand command = new SqlCommand("SubmitSearch2", connection))
{
command.CommandType = CommandType.StoredProcedure;