Skip to content

Suggest having manual mode, so setting in loops can be done at once. #4

@brainysmurf

Description

@brainysmurf

You can get even better results by having a manual mode, where the programmer can call .set but it doesn't actually persist yet (just puts it in the cache). Then, when the programmer manually calls .persist (or whatever), the library can use the .setMany function.

This is especially effective in loops. Example of it is here: https://classroomtechtools.github.io/ObjectStore/

The programmer could also build up their own properties and set them at the end of the loop, but that means making another object, and maintaining that.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions