Skip to content

Make EntityManager Clone #3

Open
@gterzian

Description

Since the EntityRepository is Clone, you could remove the Arc around the EntityManager and instead make it Clone as well, since the DocHandle is Clone.

Besides removing the arc, if you were ever to start using DocHandle.changed somewhere, you would get what I think is a more intuitive kind of result than if you were to use the same refcounted doc handle everywhere: with the current setup it could lead to some updates apparently not propagating(because each doc handle keeps track of the latest state it has seen, and the arc would make this a single global thing as opposed to a local thing, see this note).

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions