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…


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail

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.


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail


Print Share Comment Cite Upload Translate
APA
Posts on LINQ to Fail | Sciencx (2023-02-04T22:31:23+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 2023-02-04T22:31:23+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 2023-02-04T22:31:23+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 2023-02-04T22:31:23+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: 2023-02-04T22:31:23+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/ | 2023-02-04T22:31:23+00:00
https://github.com/addpipe/simple-recorderjs-demo