Skip to content

Conversation

@dfahlander
Copy link
Collaborator

No description provided.

@coderabbitai
Copy link

coderabbitai bot commented Nov 10, 2025

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch collection-next

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

- Add validation to prevent non-virtual compound indexes from being used
  when range constraint is on the first component
- IndexedDB cannot compare single values against arrays, so compound
  indexes can only be used for ranges when all preceding components
  have equality constraints
- Virtual indexes handle this correctly by translating ranges
- Update index preference logic to favor real indexes over virtual
  indexes when scores are equal
- Ensures correct index selection with virtual-index-middleware
- Verify that queries work correctly when only compound indexes exist
- Tests that virtual sub-indexes are used as fallback when no explicit
  index is defined
- Ensures startsWith() works with virtual indexes created from compound
  indexes like [name+age+shoeSize]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants