Reverse order unique queries in IndexedDB

In my post my db.js querying I covered how to do reverse unique queries with db.js using the desc().distinct() method chaining which will query an index for the unique items, but it’ll do it in reverse order, essentially it will set a IDBCursor d…

In my post my db.js querying I covered how to do reverse unique queries with db.js using the desc().distinct() method chaining which will query an index for the unique items, but it’ll do it in reverse order, essentially it will set a IDBCursor direction of prevunique.
When covering off I mentioned that the way it works is a little unusual and here I’ll explain why.
How an index “looks”So you’ve got an index in your object store, an index which is non-unique, and it contains duplicate values.


Print Share Comment Cite Upload Translate
APA
Posts on LINQ to Fail | Sciencx (2024-03-28T17:44:44+00:00) » Reverse order unique queries in IndexedDB. Retrieved from https://www.scien.cx/2012/10/08/reverse-order-unique-queries-in-indexeddb/.
MLA
" » Reverse order unique queries in IndexedDB." Posts on LINQ to Fail | Sciencx - Monday October 8, 2012, https://www.scien.cx/2012/10/08/reverse-order-unique-queries-in-indexeddb/
HARVARD
Posts on LINQ to Fail | Sciencx Monday October 8, 2012 » Reverse order unique queries in IndexedDB., viewed 2024-03-28T17:44:44+00:00,<https://www.scien.cx/2012/10/08/reverse-order-unique-queries-in-indexeddb/>
VANCOUVER
Posts on LINQ to Fail | Sciencx - » Reverse order unique queries in IndexedDB. [Internet]. [Accessed 2024-03-28T17:44:44+00:00]. Available from: https://www.scien.cx/2012/10/08/reverse-order-unique-queries-in-indexeddb/
CHICAGO
" » Reverse order unique queries in IndexedDB." Posts on LINQ to Fail | Sciencx - Accessed 2024-03-28T17:44:44+00:00. https://www.scien.cx/2012/10/08/reverse-order-unique-queries-in-indexeddb/
IEEE
" » Reverse order unique queries in IndexedDB." Posts on LINQ to Fail | Sciencx [Online]. Available: https://www.scien.cx/2012/10/08/reverse-order-unique-queries-in-indexeddb/. [Accessed: 2024-03-28T17:44:44+00:00]
rf:citation
» Reverse order unique queries in IndexedDB | Posts on LINQ to Fail | Sciencx | https://www.scien.cx/2012/10/08/reverse-order-unique-queries-in-indexeddb/ | 2024-03-28T17:44:44+00:00
https://github.com/addpipe/simple-recorderjs-demo