Skip to content

Conversation

@gaetansenn
Copy link
Contributor

Scope

What's changed:

  • Extended createIndex schema helper to accept composite indexes
  • Added migration to create index on directus_revisions(collection, item, version)

Potential Risks / Drawbacks

  • Migration may take time on large directus_revisions tables (uses attemptConcurrentIndex to minimize locking)
  • MySQL limited to 16 columns per composite index (documented in JSDoc)

Tested Scenarios

  • Unit tests for composite index SQL generation on all dialects
  • Blackbox test for composite index functionality

Checklist

  • Added or updated tests
  • Documentation PR created here or not required
  • OpenAPI package PR created here or not required

Fixes #26272

@linear
Copy link

linear bot commented Dec 12, 2025

@ComfortablyCoding ComfortablyCoding marked this pull request as draft December 12, 2025 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

slow query for revisions

2 participants