docs: switch cache conversion design from MessagePack to protobuf-net-data
protobuf-net-data is purpose-built for IDataReader serialization and returns IDataReader directly from Deserialize(), eliminating the need for custom streaming reader implementations.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
using JdeScoping.DataAccess.Models;
|
||||
using SqlKata.Compilers;
|
||||
|
||||
namespace JdeScoping.DataAccess.QueryBuilders;
|
||||
|
||||
/// <summary>
|
||||
/// Builds MIS extraction queries for work order step matching.
|
||||
/// Uses SQL extraction functions to retrieve criteria from Search.Criteria JSON.
|
||||
/// </summary>
|
||||
public sealed class MisQueryBuilder
|
||||
{
|
||||
@@ -21,10 +21,11 @@ public sealed class MisQueryBuilder
|
||||
|
||||
/// <summary>
|
||||
/// Builds the complete MIS extraction SQL including temp table setup and data population.
|
||||
/// Uses extraction functions to get filter criteria from the database.
|
||||
/// </summary>
|
||||
/// <param name="model">The search model containing filter criteria.</param>
|
||||
/// <param name="searchId">The search ID to extract criteria from.</param>
|
||||
/// <returns>The SQL statements for MIS extraction.</returns>
|
||||
public IReadOnlyList<string> BuildMisExtractionSql(SearchModel model)
|
||||
public IReadOnlyList<string> BuildMisExtractionSql(int searchId)
|
||||
{
|
||||
var statements = new List<string>();
|
||||
|
||||
@@ -32,7 +33,7 @@ public sealed class MisQueryBuilder
|
||||
statements.Add(BuildTempMisDataTableSql());
|
||||
|
||||
// Build and execute MIS CTE query to populate temp table
|
||||
statements.Add(BuildMisCteSql(model));
|
||||
statements.Add(BuildMisCteSql());
|
||||
|
||||
return statements;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user