Skip to content

test(crawler): query plans for the superseded-page repair and its marker probe #289 - #1388

Closed
nc9 wants to merge 2 commits into
mainfrom
test/repair-query-plan-289
Closed

nc9 wants to merge 2 commits into
mainfrom
test/repair-query-plan-289

Conversation

@nc9

@nc9 nc9 commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Closes #289 (criterion 3)

The repair's SQL is now data (SQLiteStorage.SUPERSEDED_REPAIR_SQL, same statements, no behaviour change) so a test asks SQLite for the query plans:

  • the per-audit marker probe is a keyed maintenance_marks lookup, never a scan;
  • a chunk reaches the retired crawls through idx_crawls_retired and their rows past the cursor through idx_pages_crawl (crawl_id=? AND rowid>?), and each row's newer copy through idx_pages_url_recency (normalized_url=?): no table scan. A chunk only runs until the one-time repair is done.

Test only. Docs: none. Skill change: none.

nik

nc9 added 2 commits October 31, 2026 10:05
…ding (EXISTS); move static above its method docs #289

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9 nc9 mentioned this pull request Oct 31, 2026
@nc9

nc9 commented Oct 31, 2026

Copy link
Copy Markdown
Contributor Author

Landed in v0.0.148 as 982219cd 8cf6df9d via #1427. Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.148. Closing this original.

nik

@nc9 nc9 closed this Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Page rows superseded before automatic retention shipped are never collected

1 participant