Closed
Description
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