Open
Description
Hey Guys,
just would like to suggest adding a note to the docs regarding the comparison of putQueued
vs putMany
.
In our concrete case we are scaffolding our database with remote data on first startup. We concurrently load different datasets and put them into the correct boxes.
What I now did is to put them queued and before assuming the booting has succeeded I wait for awaitAsyncSubmitted() == true
.
But of course the other option might be to created all instances in a loop and use putMany
to store our initial data.
Apart from the dart specific topics like allocating thousands of objects in a loop I am interested in the objectbox' point of view what is better to create initial data.