docs(inventory): explain two-phase prune query (SQLite constraint)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-06-09 14:44:57 -04:00
parent 77ad614258
commit 00fbf1a185

View File

@@ -296,6 +296,7 @@ internal sealed class InventoryTransaction : IInventoryTransaction
private async Task PruneAcquireHistoryAsync(CancellationToken ct)
{
// Two-phase: SQLite (used in tests) cannot translate Skip+OrderBy inside ExecuteDeleteAsync.
var overflowIds = await _db.ViewerAcquireHistory
.Where(h => h.ViewerId == Viewer.Id)
.OrderByDescending(h => h.AcquireTime).ThenByDescending(h => h.Id)