Add status-first TaskRun index to speed up uncommon status filters#2168
Add status-first TaskRun index to speed up uncommon status filters#2168matt-aitken merged 1 commit intomainfrom
Conversation
|
WalkthroughA new SQL migration script has been added to create a composite index on the "TaskRun" table, specifically indexing the columns "status", "runtimeEnvironmentId", "createdAt", and "id" (with "id" sorted in descending order). Correspondingly, the Prisma schema for the "TaskRun" model has been updated to define this new composite index using the same fields and sort order. No other changes were made to the schema or public entities. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms (25)
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
No description provided.