René's URL Explorer Experiment


Title: improvement(search): reduce redundant metadata reads by waleedlatif1 · Pull Request #7728 · simstudioai/sim · GitHub

Open Graph Title: improvement(search): reduce redundant metadata reads by waleedlatif1 · Pull Request #7728 · simstudioai/sim

X Title: improvement(search): reduce redundant metadata reads by waleedlatif1 · Pull Request #7728 · simstudioai/sim

Description: Summary Batch knowledge-base references and tag definitions during search, reducing those reads from 40 statements to 2 for 20 bases while preserving ordering, missing entries, and fresh authorization. Skip GitHub connector discovery for explicitly filtered non-GitHub searches. Keep default/GitHub discovery, ranking, and live access checks unchanged. Type of Change Performance improvement Testing 820 unit tests and 62 PostgreSQL integration tests passed, covering ACLs, source/date filters, GitHub access, organization MCP search, and batching parity. Local synthetic benchmark: 480 paired scenario groups; 20-base reference/tag p50 improved from 7.67 ms to 1.91 ms. This measures preparation only; single-base SQL is unchanged. Lint, repository audits, block-registry validation, and docs manifest validation passed. The batching regression is included in the existing PostgreSQL CI job. 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 Batch knowledge-base references and tag definitions during search, reducing those reads from 40 statements to 2 for 20 bases while preserving ordering, missing entries, and fresh authoriza...

X Description: Summary Batch knowledge-base references and tag definitions during search, reducing those reads from 40 statements to 2 for 20 bases while preserving ordering, missing entries, and fresh authoriza...

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

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:8b81a271-94f5-6ded-58dc-2974d7cfe0f9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC8A8:3ED756:20CAD8:2DC59E:6AFB50C9
html-safe-nonce0a8ff87c6af3b7f3443b2b898f666f11aff59b71ab0178413e0546fd21e08ad0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOEE4OjNFRDc1NjoyMENBRDg6MkRDNTlFOjZBRkI1MEM5IiwidmlzaXRvcl9pZCI6Ijc1MjAyNzcyNzUxMDM0MTY1MjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf0f14b67d04b5916cabbec8de8c97f1a0ee32ec777c98cc611e10eb34aecdea1
hovercard-subject-tagpull_request:4494651293
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/7728/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 Batch knowledge-base references and tag definitions during search, reducing those reads from 40 statements to 2 for 20 bases while preserving ordering, missing entries, and fresh authoriza...
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/7728/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F7728%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%2F7728%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/7728/files
Reloadhttps://github.com/simstudioai/sim/pull/7728/files
Reloadhttps://github.com/simstudioai/sim/pull/7728/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
codex/search-retrieval-reusehttps://github.com/simstudioai/sim/tree/codex/search-retrieval-reuse
Conversation 2 https://github.com/simstudioai/sim/pull/7728
Commits 1 https://github.com/simstudioai/sim/pull/7728/commits
Checks 33 https://github.com/simstudioai/sim/pull/7728/checks
Files changed https://github.com/simstudioai/sim/pull/7728/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7728/files
improvement(search): reduce redundant metadata reads https://github.com/simstudioai/sim/pull/7728/files#top
Show all changes 1 commit https://github.com/simstudioai/sim/pull/7728/files
5fdc2a5 improvement(search): reduce redundant metadata reads waleedlatif1 Sep 10, 2026 https://github.com/simstudioai/sim/pull/7728/commits/5fdc2a5612e02c83cd440d7b50cab6a539b5bd63
Clear filters https://github.com/simstudioai/sim/pull/7728/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7728/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7728/files
test-build.yml https://github.com/simstudioai/sim/pull/7728/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
route.provenance.test.ts https://github.com/simstudioai/sim/pull/7728/files#diff-630fba1349acab836a3919a6d81cb94484c212424bdb6b2f9390cc787c8836d5
search-reference-batching.integration.ts https://github.com/simstudioai/sim/pull/7728/files#diff-9d9527790e0bb477c6a1b1159ddc12adcfc762ad43b5c94cf716968b2fad7179
documents.test.ts https://github.com/simstudioai/sim/pull/7728/files#diff-5e8dd6a21ba53fad9ffd25e17795bc3daee65d49d0a6cd2947c8a24d4f0f94c1
search.test.ts https://github.com/simstudioai/sim/pull/7728/files#diff-c537ffb68efc080de7b2966157c993c5d2a2b2d52ff7eae0024dee04cdf0266f
search.ts https://github.com/simstudioai/sim/pull/7728/files#diff-6d92dc3a4dd3235b5c805a3ef81a2a271e98cc2632caf3274d8a1ac938644934
queries-github-discovery.test.ts https://github.com/simstudioai/sim/pull/7728/files#diff-bcea6a21a8b1dbb08d1c80867c179659c2ac56f6272a5240c1694a71cb3f1145
queries.test.ts https://github.com/simstudioai/sim/pull/7728/files#diff-b5bc7cdb4cf5dd93b0dc5beb76436fb9e70fc036e89833eaf8d9defb8bc83c3b
queries.ts https://github.com/simstudioai/sim/pull/7728/files#diff-5f10054baeef2f06350b32a6520d8f841f86a2fc908435296dd8dcb097497ba9
service.test.ts https://github.com/simstudioai/sim/pull/7728/files#diff-5856177786ea5bfaddee3756ec5ac692c1e3e97c332ec370f6c31f401649abb8
service.ts https://github.com/simstudioai/sim/pull/7728/files#diff-6978b26968fd05cf5c7635c366c8c806693b6145235f476627302fb402f32d18
filter-resolution.test.ts https://github.com/simstudioai/sim/pull/7728/files#diff-aa365438e29d222248c3fed50f8802402fb52e7df2567e686631928e6d7bc773
filter-resolution.ts https://github.com/simstudioai/sim/pull/7728/files#diff-5a8306824a360439f87183b3f43222683da543c4fd8c9f890085a2e419f41e56
service.test.ts https://github.com/simstudioai/sim/pull/7728/files#diff-6ab99007963a2c376955441371306a455d8efb669c82847e45df92c8f9d41858
service.ts https://github.com/simstudioai/sim/pull/7728/files#diff-4fdaff0349702c024b13f9efe5c76cfb3670292a7818fd9fe403ae789eae2632
.github/workflows/test-build.ymlhttps://github.com/simstudioai/sim/pull/7728/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
View file https://github.com/simstudioai/sim/blob/5fdc2a5612e02c83cd440d7b50cab6a539b5bd63/.github/workflows/test-build.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7728/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7728/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
https://github.com/simstudioai/sim/pull/7728/files#diff-a583f7935a5f3192471a2999cbf059eadc857228b5be2c7247f481b799949f8d
apps/sim/app/api/v2/knowledge/search/route.provenance.test.tshttps://github.com/simstudioai/sim/pull/7728/files#diff-630fba1349acab836a3919a6d81cb94484c212424bdb6b2f9390cc787c8836d5
View file https://github.com/simstudioai/sim/blob/5fdc2a5612e02c83cd440d7b50cab6a539b5bd63/apps/sim/app/api/v2/knowledge/search/route.provenance.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7728/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7728/files#diff-630fba1349acab836a3919a6d81cb94484c212424bdb6b2f9390cc787c8836d5
https://github.com/simstudioai/sim/pull/7728/files#diff-630fba1349acab836a3919a6d81cb94484c212424bdb6b2f9390cc787c8836d5
https://github.com/simstudioai/sim/pull/7728/files#diff-630fba1349acab836a3919a6d81cb94484c212424bdb6b2f9390cc787c8836d5
apps/sim/lib/knowledge/__integration__/search-reference-batching.integration.tshttps://github.com/simstudioai/sim/pull/7728/files#diff-9d9527790e0bb477c6a1b1159ddc12adcfc762ad43b5c94cf716968b2fad7179
View file https://github.com/simstudioai/sim/blob/5fdc2a5612e02c83cd440d7b50cab6a539b5bd63/apps/sim/lib/knowledge/__integration__/search-reference-batching.integration.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7728/{{ revealButtonHref }}
apps/sim/lib/knowledge/application/documents.test.tshttps://github.com/simstudioai/sim/pull/7728/files#diff-5e8dd6a21ba53fad9ffd25e17795bc3daee65d49d0a6cd2947c8a24d4f0f94c1
View file https://github.com/simstudioai/sim/blob/5fdc2a5612e02c83cd440d7b50cab6a539b5bd63/apps/sim/lib/knowledge/application/documents.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7728/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7728/files#diff-5e8dd6a21ba53fad9ffd25e17795bc3daee65d49d0a6cd2947c8a24d4f0f94c1
https://github.com/simstudioai/sim/pull/7728/files#diff-5e8dd6a21ba53fad9ffd25e17795bc3daee65d49d0a6cd2947c8a24d4f0f94c1
apps/sim/lib/knowledge/application/search.test.tshttps://github.com/simstudioai/sim/pull/7728/files#diff-c537ffb68efc080de7b2966157c993c5d2a2b2d52ff7eae0024dee04cdf0266f
View file https://github.com/simstudioai/sim/blob/5fdc2a5612e02c83cd440d7b50cab6a539b5bd63/apps/sim/lib/knowledge/application/search.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7728/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7728/files#diff-c537ffb68efc080de7b2966157c993c5d2a2b2d52ff7eae0024dee04cdf0266f
https://github.com/simstudioai/sim/pull/7728/files#diff-c537ffb68efc080de7b2966157c993c5d2a2b2d52ff7eae0024dee04cdf0266f
https://github.com/simstudioai/sim/pull/7728/files#diff-c537ffb68efc080de7b2966157c993c5d2a2b2d52ff7eae0024dee04cdf0266f
https://github.com/simstudioai/sim/pull/7728/files#diff-c537ffb68efc080de7b2966157c993c5d2a2b2d52ff7eae0024dee04cdf0266f
https://github.com/simstudioai/sim/pull/7728/files#diff-c537ffb68efc080de7b2966157c993c5d2a2b2d52ff7eae0024dee04cdf0266f
https://github.com/simstudioai/sim/pull/7728/files#diff-c537ffb68efc080de7b2966157c993c5d2a2b2d52ff7eae0024dee04cdf0266f
https://github.com/simstudioai/sim/pull/7728/files#diff-c537ffb68efc080de7b2966157c993c5d2a2b2d52ff7eae0024dee04cdf0266f
https://github.com/simstudioai/sim/pull/7728/files#diff-c537ffb68efc080de7b2966157c993c5d2a2b2d52ff7eae0024dee04cdf0266f
https://github.com/simstudioai/sim/pull/7728/files#diff-c537ffb68efc080de7b2966157c993c5d2a2b2d52ff7eae0024dee04cdf0266f
apps/sim/lib/knowledge/application/search.tshttps://github.com/simstudioai/sim/pull/7728/files#diff-6d92dc3a4dd3235b5c805a3ef81a2a271e98cc2632caf3274d8a1ac938644934
View file https://github.com/simstudioai/sim/blob/5fdc2a5612e02c83cd440d7b50cab6a539b5bd63/apps/sim/lib/knowledge/application/search.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7728/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7728/files#diff-6d92dc3a4dd3235b5c805a3ef81a2a271e98cc2632caf3274d8a1ac938644934
https://github.com/simstudioai/sim/pull/7728/files#diff-6d92dc3a4dd3235b5c805a3ef81a2a271e98cc2632caf3274d8a1ac938644934
https://github.com/simstudioai/sim/pull/7728/files#diff-6d92dc3a4dd3235b5c805a3ef81a2a271e98cc2632caf3274d8a1ac938644934
https://github.com/simstudioai/sim/pull/7728/files#diff-6d92dc3a4dd3235b5c805a3ef81a2a271e98cc2632caf3274d8a1ac938644934
https://github.com/simstudioai/sim/pull/7728/files#diff-6d92dc3a4dd3235b5c805a3ef81a2a271e98cc2632caf3274d8a1ac938644934
https://github.com/simstudioai/sim/pull/7728/files#diff-6d92dc3a4dd3235b5c805a3ef81a2a271e98cc2632caf3274d8a1ac938644934
Please reload this pagehttps://github.com/simstudioai/sim/pull/7728/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7728/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.