objectbox / objectbox/objectbox-dart
Enhanced Docs on putQueued vs putMany
@greenrobot-team is already working on this.
Since Jul 5, 2022.
- Dominant language
- Dart
- Stars
- 1.2k
- Forks
- 162
- Avg merge
- 15m
- Merged PRs (30d)
- 1
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.