René's URL Explorer Experiment


Title: improvement(knowledge): serve date tag filters from an index by waleedlatif1 · Pull Request #8348 · simstudioai/sim · GitHub

Open Graph Title: improvement(knowledge): serve date tag filters from an index by waleedlatif1 · Pull Request #8348 · simstudioai/sim

X Title: improvement(knowledge): serve date tag filters from an index by waleedlatif1 · Pull Request #8348 · simstudioai/sim

Description: Summary Date tag filters compiled to col::date d::date, which no btree on the timestamp column can serve. Every date filter walked past its slot index, so #8332 dropped those never-used indexes. This makes date filtering index-backed instead Date filters now compile to half-open ranges on the raw timestamp column, e.g. eq d → col >= d AND col < d + 1 day. Each range selects exactly the rows the calendar-day comparison did: the slots have no time zone, and a NULL tag still matches nothing One builder, buildDateTagCondition, is shared by search tag filters and the document list filter. Each keeps its existing fallback for unknown operators New migration re-creates {emb,doc}_date1_idx / date2_idx concurrently Type of Change Improvement Testing Real-Postgres equivalence test: every operator, every day boundary (23:59:59.999999, midnight), NULL, and equal-endpoint and multi-day between, under three session time zones, compared against the old ::date predicate evaluated on the same rows. Five boundary mutations of the builder each turn it red Isolated EXPLAIN test: selective eq, between, gte, and lt date filters use the date index from both builders. It fails on the pre-change builders Knowledge search A/B on a synthetic 732k-chunk fixture, with identical results in every shape: a single-day filter no longer seq-scans embedding in the vector leg's short-result rescue probe (55–61 ms → under 1 ms) vector and hybrid date searches run 19–25% faster end to end hybrid keyword ranking with a date filter drops from ~30 → ~10 ms tags-only single-day filters add ~1 ms kb-block-search, filtered-search, workspace-kb-document-access, search-index-policy, type-check, lint, check:audits, and check:migrations origin/staging pass Migration number is renumbered at merge time, since other open PRs also add migrations Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary Date tag filters compiled to col::date <op> d::date, which no btree on the timestamp column can serve. Every date filter walked past its slot index, so #8332 dropped those never-used...

X Description: Summary Date tag filters compiled to col::date &lt;op&gt; d::date, which no btree on the timestamp column can serve. Every date filter walked past its slot index, so #8332 dropped those ne...

Opengraph URL: https://github.com/simstudioai/sim/pull/8348

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:1f794a8e-c4ef-af5b-17d3-c2d74c27cdd3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD760:345450:A1D181:DF8ABA:6AFB50B6
html-safe-noncedbc2681ebbe71c0f6e16841a3b19394ea539bd491d65f1fd66ed29ee654aab07
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzYwOjM0NTQ1MDpBMUQxODE6REY4QUJBOjZBRkI1MEI2IiwidmlzaXRvcl9pZCI6Ijc2ODc1MzU2MDIzOTU5OTIyNDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac227433c0c30da76b167b09a79aff873805c81db8bda51315334a9159e60f4e9c
hovercard-subject-tagpull_request:4650049469
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/8348/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary Date tag filters compiled to col::date <op> d::date, which no btree on the timestamp column can serve. Every date filter walked past its slot index, so #8332 dropped those never-used...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7122bb414b542dba14d71a3f0b9f6fd2abce715b9f5912d082800563e6c806d1
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecbf66c024bb6d10e6955baa7413c54cf13a201bb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/8348/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F8348%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F8348%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/8348/files
Reloadhttps://github.com/simstudioai/sim/pull/8348/files
Reloadhttps://github.com/simstudioai/sim/pull/8348/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
improvement/sargable-date-tag-filtershttps://github.com/simstudioai/sim/tree/improvement/sargable-date-tag-filters
Conversation 7 https://github.com/simstudioai/sim/pull/8348
Commits 1 https://github.com/simstudioai/sim/pull/8348/commits
Checks 31 https://github.com/simstudioai/sim/pull/8348/checks
Files changed https://github.com/simstudioai/sim/pull/8348/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8348/files
improvement(knowledge): serve date tag filters from an index https://github.com/simstudioai/sim/pull/8348/files#top
Show all changes 1 commit https://github.com/simstudioai/sim/pull/8348/files
5feba82 improvement(knowledge): serve date tag filters from an index waleedlatif1 Sep 26, 2026 https://github.com/simstudioai/sim/pull/8348/commits/5feba82adfd0cddef841bf2f41be16053bbb6055
Clear filters https://github.com/simstudioai/sim/pull/8348/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8348/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8348/files
tag-filter.test.ts https://github.com/simstudioai/sim/pull/8348/files#diff-a091a3a6449b4a161156002367852135bb69d4592e8e2401ccc4221a77c3df72
tag-filter.ts https://github.com/simstudioai/sim/pull/8348/files#diff-390ddd78bd25b1b2a4041180b2cbbdc88308fd91738647587533697b024a0cef
queries.test.ts https://github.com/simstudioai/sim/pull/8348/files#diff-b5bc7cdb4cf5dd93b0dc5beb76436fb9e70fc036e89833eaf8d9defb8bc83c3b
tag-filters.ts https://github.com/simstudioai/sim/pull/8348/files#diff-6d618009b7b26104368786c18ce180d0e412d9ceefc7e69131fa012034812058
date-tag-condition.integration.ts https://github.com/simstudioai/sim/pull/8348/files#diff-7a9126c01d2868c5b1df6e90ad1a498e9098d31afadfc5b10611eb799010f3fc
utils.ts https://github.com/simstudioai/sim/pull/8348/files#diff-95e140908749165694c7cbc8e67192c43b3d79137410c5b072577bd5c4ff1779
0387_date_tag_range_indexes.sql https://github.com/simstudioai/sim/pull/8348/files#diff-789f0a8e05061ad772411d19a50353bf1d29b36c325c7c76249542b28ee9df92
0387_snapshot.json https://github.com/simstudioai/sim/pull/8348/files#diff-1c6aa32f3e7b6022c9ec86d240c89115f54e344de06ff3a5a028433155fc2858
_journal.json https://github.com/simstudioai/sim/pull/8348/files#diff-37150cc65ad16ee6fbc5fa318fc096be7730e16d63eaf863e3df5521b7030649
schema.ts https://github.com/simstudioai/sim/pull/8348/files#diff-9a959e2ce3cb4c86957bbae021d06eae364f7b0cb18964f5873bab53220af928
apps/sim/lib/knowledge/documents/tag-filter.test.tshttps://github.com/simstudioai/sim/pull/8348/files#diff-a091a3a6449b4a161156002367852135bb69d4592e8e2401ccc4221a77c3df72
View file https://github.com/simstudioai/sim/blob/5feba82adfd0cddef841bf2f41be16053bbb6055/apps/sim/lib/knowledge/documents/tag-filter.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8348/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8348/files#diff-a091a3a6449b4a161156002367852135bb69d4592e8e2401ccc4221a77c3df72
https://github.com/simstudioai/sim/pull/8348/files#diff-a091a3a6449b4a161156002367852135bb69d4592e8e2401ccc4221a77c3df72
apps/sim/lib/knowledge/documents/tag-filter.tshttps://github.com/simstudioai/sim/pull/8348/files#diff-390ddd78bd25b1b2a4041180b2cbbdc88308fd91738647587533697b024a0cef
View file https://github.com/simstudioai/sim/blob/5feba82adfd0cddef841bf2f41be16053bbb6055/apps/sim/lib/knowledge/documents/tag-filter.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8348/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8348/files#diff-390ddd78bd25b1b2a4041180b2cbbdc88308fd91738647587533697b024a0cef
https://github.com/simstudioai/sim/pull/8348/files#diff-390ddd78bd25b1b2a4041180b2cbbdc88308fd91738647587533697b024a0cef
https://github.com/simstudioai/sim/pull/8348/files#diff-390ddd78bd25b1b2a4041180b2cbbdc88308fd91738647587533697b024a0cef
apps/sim/lib/knowledge/search/queries.test.tshttps://github.com/simstudioai/sim/pull/8348/files#diff-b5bc7cdb4cf5dd93b0dc5beb76436fb9e70fc036e89833eaf8d9defb8bc83c3b
View file https://github.com/simstudioai/sim/blob/5feba82adfd0cddef841bf2f41be16053bbb6055/apps/sim/lib/knowledge/search/queries.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8348/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8348/files#diff-b5bc7cdb4cf5dd93b0dc5beb76436fb9e70fc036e89833eaf8d9defb8bc83c3b
https://github.com/simstudioai/sim/pull/8348/files#diff-b5bc7cdb4cf5dd93b0dc5beb76436fb9e70fc036e89833eaf8d9defb8bc83c3b
apps/sim/lib/knowledge/search/tag-filters.tshttps://github.com/simstudioai/sim/pull/8348/files#diff-6d618009b7b26104368786c18ce180d0e412d9ceefc7e69131fa012034812058
View file https://github.com/simstudioai/sim/blob/5feba82adfd0cddef841bf2f41be16053bbb6055/apps/sim/lib/knowledge/search/tag-filters.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8348/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/8348/files#diff-6d618009b7b26104368786c18ce180d0e412d9ceefc7e69131fa012034812058
https://github.com/simstudioai/sim/pull/8348/files#diff-6d618009b7b26104368786c18ce180d0e412d9ceefc7e69131fa012034812058
https://github.com/simstudioai/sim/pull/8348/files#diff-6d618009b7b26104368786c18ce180d0e412d9ceefc7e69131fa012034812058
https://github.com/simstudioai/sim/pull/8348/files#diff-6d618009b7b26104368786c18ce180d0e412d9ceefc7e69131fa012034812058
https://github.com/simstudioai/sim/pull/8348/files#diff-6d618009b7b26104368786c18ce180d0e412d9ceefc7e69131fa012034812058
https://github.com/simstudioai/sim/pull/8348/files#diff-6d618009b7b26104368786c18ce180d0e412d9ceefc7e69131fa012034812058
apps/sim/lib/knowledge/tags/date-tag-condition.integration.tshttps://github.com/simstudioai/sim/pull/8348/files#diff-7a9126c01d2868c5b1df6e90ad1a498e9098d31afadfc5b10611eb799010f3fc
View file https://github.com/simstudioai/sim/blob/5feba82adfd0cddef841bf2f41be16053bbb6055/apps/sim/lib/knowledge/tags/date-tag-condition.integration.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/8348/{{ revealButtonHref }}
Please reload this pagehttps://github.com/simstudioai/sim/pull/8348/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/8348/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.