You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
The SubReferenceNodeTypeStrategy causing the contention has been replaced with an IndexingNodeTypeStrategy. Graphs created with SubReferenceNodeTypeStrategy will still continue to use it
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
The text was updated successfully, but these errors were encountered: