Skip to content

Enhanced Docs on putQueued vs putMany #275

Open
@obrunsmann

Description

@obrunsmann

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.

Metadata

Metadata

Labels

documentationImprovements or additions to documentationenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions