objectbox / objectbox/objectbox-dart

Enhanced Docs on putQueued vs putMany

Open
#275 0 comments 0 reactions 1 assignee View on GitHub

@greenrobot-team is already working on this.

Since Jul 5, 2022.

documentation enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.