feat: add optimization settings to all queries if available#1753
feat: add optimization settings to all queries if available#1753
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 03bab25 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
PR Review: feat: add optimization settings to all queries if availableApproach looks solid overall — the caching pattern, recursion guard, and test coverage are well done. A few issues to address:
The most important fix before merge is #1 — the error propagation will cause query failures in any environment where |
PR Review: feat: add optimization settings to all queries if availableThe approach is sound overall. A few items to consider:
✅ Recursion prevention via |
| ); | ||
| let clickhouseSettings: ClickHouseSettings | undefined; | ||
| // If this is the settings query, we must not process the clickhouse settings, or else we will infinitely recurse | ||
| if (shouldSkipApplySettings) { |
There was a problem hiding this comment.
I have the same concern as Claude. Shouldn't this be if (!shouldSkipApplySettings)?
There was a problem hiding this comment.
Yes, I uncovered that locally when adding tests too!
a91e274 to
14f9233
Compare
PR Review: feat: add optimization settings to all queries if availableApproach is solid — caching pattern, recursion guard via
The most critical fix before merge is #1 — any environment where |
E2E Test Results✅ All tests passed • 71 passed • 4 skipped • 805s
Tests ran across 4 shards in parallel. |
Adds several optimizations that helps immensely with search query duration. On our own data we've seen a 2-3x improvement, for extremely large log tables we've seen a 50x improvement
Closes HDX-3429