I want to retrieve all those values which matches one of the passed values. This is like IN operator in SQL.
One straight approach is to open a cursor (cursor open on an index) and loop through the values to check if it matches one of them, but it looks in-efficient because it requires reading whole data store.
Another approach could be looping through all the required values and using IDBObjectStore.get() on them but then I am not sure if it can be efficient then above approach.
IDBKeyRange certainly cannot help here because I want IN given values and not some lower and upper bound range.
Any thoughts?