-
Notifications
You must be signed in to change notification settings - Fork 100
Reverse index #627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reverse index #627
Conversation
🦋 Changeset detectedLatest commit: 5ddd939 The changes in this PR will be included in the next version bump. This PR includes changesets to release 12 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 |
More templates
@tanstack/angular-db
@tanstack/db
@tanstack/db-ivm
@tanstack/electric-db-collection
@tanstack/query-db-collection
@tanstack/react-db
@tanstack/rxdb-db-collection
@tanstack/solid-db
@tanstack/svelte-db
@tanstack/trailbase-db-collection
@tanstack/vue-db
commit: |
Size Change: +848 B (+1.14%) Total Size: 75.4 kB
ℹ️ View Unchanged
|
Size Change: 0 B Total Size: 1.44 kB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ed29a4d
to
5ddd939
Compare
#623 fixes a bug with the indexes. As a result, we create separate indexes for ASC and DESC queries. This is suboptimal. This PR introduces a ReverseIndex such that if an index exist but it is in the wrong direction we reverse it. As a result, there's only one underlying index.