As I delve into learning about javascript IndexedDB, I have encountered a challenge in executing complex queries. My goal is to perform a select query like this one:
"select * from table where indexA >= 'a' order by indexB ASC limit 10"
I attempted to create an index using the code snippet below:
store.createIndex("indexA, indexB", ["indexA","indexB"])
and executed a request in this manner:
store.index("indexA, indexB").openCursor(IDBKeyRange.lowerBound([1, "a"], true))
yet, the outcome only sorted based on indexA. Is there another approach to achieve my desired result?