Skip to content

Change how object counts are updated in the class hierarchy graph to avoid lock contention [DATAGRAPH-13] #579

Closed
@spring-projects-issues

Description

@spring-projects-issues

David Montag opened DATAGRAPH-13 and commented

Currently, when an entity is created, object counts are updated in the class hierarchy graph. When getting the count, one simply gets the number off the class node in question. Doing it this way however ends up creating a bottleneck for object creation, specifically with the most contention on the class node for Object, as that ends up getting locked for every object creation to update the count.

An alternative would be to just update the count on the one specific class node instead (and not all the way up to Object), and then have Finder.count() sum the whole tree for the class in question. Will have to be looked into at some point


Affects: 1.0 M3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions