Skip to content

💡 Create a transaction system #65

Open
@pjechris

Description

@pjechris

Summary

Now that we have ObserverRegistry, I think it would be possible to have a transaction mechanism:

  • all updates would be grouped into a transaction
  • updates would be triggered at the end of transaction
    This could help better managing the number of updates

Basic Example

// implicit transaction
entityStore.store(xx)
// registry send events

// implicit 2nd transaction
entityStore.store(xx)
// registry send events

// explicit transaction
transaction {
  entityStore.store(xx)
  entityStore.store(xx)
}
// registry send events

Unresolved questions

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions