mirror of
https://github.com/appy-one/acebase.git
synced 2026-05-25 06:02:14 -06:00
[GH-ISSUE #120] Incorrect query result with skip()/take() when items are sorted in descending order (possibly related to indices) #69
Labels
No labels
IndexedDB
browser
bug
dependencies
documentation
duplicate
enhancement
feature request
indexes
indexes
invalid
pull-request
query
question
transaction logging
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/acebase#69
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SilentAntenna on GitHub (Jun 19, 2022).
Original GitHub issue: https://github.com/appy-one/acebase/issues/120
Originally assigned to: @appy-one on GitHub.
Version 1.21.6.
Suppose that the form of each item looks like this:
And we created an index for the
nameproperty:Then we construct a query in the following manner:
The query will not skip items properly.
This is probably related to line 707-712 of
acebase/src/api-local.js. We sort the items in a descending way but toss the first value every time.@appy-one commented on GitHub (Jun 22, 2022):
I published v1.21.7 which should have fixed this. Let me know!
@SilentAntenna commented on GitHub (Jun 23, 2022):
Problem fixed. Thanks!