test(adminui): SQL-Server-backed pins for the drift watermark aggregate and the rename scan's collation widening

This commit is contained in:
Joseph Doherty
2026-08-17 03:53:16 -04:00
parent 7870c91fe4
commit c149410ba3
5 changed files with 634 additions and 0 deletions
@@ -1448,6 +1448,9 @@ public sealed class RawTreeService(IDbContextFactory<OtOpcUaConfigDbContext> dbF
// ScriptId, not Name: Name carries no unique index, and collapsing two same-named scripts into one
// would change the count this warning reports.
var matched = new Dictionary<string, string>(StringComparer.Ordinal);
// Sequential batches: a rename at the 50k-distinct-path scale costs ~250 round-trips at 200 terms
// each. Deliberate — a rename is an interactive one-off, and bounded memory + a translatable
// predicate beat one giant OR-chain the provider would refuse (or plan pathologically).
for (var offset = 0; offset < distinctPaths.Length; offset += ScriptScanBatchSize)
{
var batch = distinctPaths[offset..Math.Min(offset + ScriptScanBatchSize, distinctPaths.Length)];