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
+4 -4
View File
@@ -29,7 +29,7 @@ namespace WorkerService.Process
s.StartDT,
s.EndDT,
s.Criteria AS CriteriaJSON
FROM dbo.Search s
FROM dbo.Search2 s
WHERE s.Status = 1
ORDER BY s.SubmitDT";
@@ -71,7 +71,7 @@ namespace WorkerService.Process
{
using (SqlConnection connection = GetConnection())
{
connection.Execute("ResetPartialSearches", commandType: CommandType.StoredProcedure);
connection.Execute("ResetPartialSearches2", commandType: CommandType.StoredProcedure);
}
}
catch (Exception error)
@@ -94,7 +94,7 @@ namespace WorkerService.Process
using (SqlConnection connection = GetConnection())
{
connection.Execute("StartSearch", new { p_SearchID = search.ID }, commandType: CommandType.StoredProcedure);
connection.Execute("StartSearch2", new { p_SearchID = search.ID }, commandType: CommandType.StoredProcedure);
}
}
catch (Exception error)
@@ -117,7 +117,7 @@ namespace WorkerService.Process
using (SqlConnection connection = GetConnection())
{
connection.Execute("CompleteSearch", new { p_SearchID = search.ID, p_WasSuccessful = wasSuccessful, p_Results = search.Results }, commandType: CommandType.StoredProcedure);
connection.Execute("CompleteSearch2", new { p_SearchID = search.ID, p_WasSuccessful = wasSuccessful, p_Results = search.Results }, commandType: CommandType.StoredProcedure);
}
}
catch (Exception error)