Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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