fix(admin): speed up request model search#479
Merged
Conversation
Co-Authored-By: Codex <noreply@openai.com>
495c14e to
1261464
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
model_searchcolumn for admin request model/lane keyword filteringmodel=scans small indexed text instead of per-rowdecision_jsonpaths0.25.12and document the performance decisionLive diagnosis
/admin/api/requests?page=1&pageSize=50&model=fable&key_id=9ed9480f-519b-4350-85d5-3640a7071e5f&start=1783180800000&end=1783267200000Verification
pnpm exec vitest run packages/core/src/store/sqlite/schema.test.tspnpm exec vitest run packages/core/src/store/postgres/migrate.test.tspnpm exec vitest run packages/core/src/store/sqlite/telemetry.test.ts packages/core/src/store/store-contract.test.tspnpm exec vitest run packages/core/src/store/sqlite/memory-dedup-migrate.test.ts packages/core/src/store/sqlite/memory-schema.test.ts packages/core/src/store/sqlite/oauth-quota-migrate.test.ts packages/core/src/store/sqlite/oauth-usage-migrate.test.tspnpm test-> 5196 passedpnpm typecheckpnpm lintpnpm build