Populate IndexedDB


In a PWA app, if the dataset does not exist I need to populate this with about a thousand records. How can I do this quickly. I obviously only want to do this if the dataset dows not exist.



Afaik, IndexedDB databases can only be programmatically created and filled.
So, you would need to write the code in your app to create & fill an IndexedDB table if it does not exist already.

I undersatnd that. Can posts be wrapped in a transaction? If so, how?

We will need to investigate that if that is possible at JavaScript API level.
At the level of our wrapper component, we have not exposed transaction support (if it would exist in JavaScript)