Skip to content

Filter on origin using an index#409

Open
eyeseast wants to merge 6 commits into
masterfrom
filter-domain-indexed
Open

Filter on origin using an index#409
eyeseast wants to merge 6 commits into
masterfrom
filter-domain-indexed

Conversation

@eyeseast

@eyeseast eyeseast commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Alternative to #408

This creates an index of domains from parameters.site and then matches against that index. It requires a migration to create the index, and changes to parameters.site will write to that index, but it should be faster than a regex scan.

This is filtering on origin (scheme + domain) so https://www.nifc.gov/fire-information/statistics/wildfires will match on https://www.nifc.gov but not www.nifc.gov.

This PR also fixes indexing on the site lookup, which was being missed.

@eyeseast eyeseast changed the title Filter on domain using an index Filter on origin using an index Jun 8, 2026
@eyeseast eyeseast marked this pull request as ready for review June 8, 2026 20:09
@eyeseast eyeseast requested review from duckduckgrayduck and mitchelljkotler and removed request for mitchelljkotler June 8, 2026 20:09
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.

1 participant