While getting object(s) from indexeddb is it possible to limit a set of fields being retrieved (not to fetch a whole data piece)? I believe an actual task when you have large objects in store, but need only small part of data for a particular operation.
No, according to the IndexedDB spec you'll always get the full object, see: 3.4.2 Object Store Retrieval Operation.
as a workaround it's possible to define a key on those fields and then do getAllKeys
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With