SpringSource/grails-data-mapping — Issue #31: [neo4j] count method performance problems
Author: mcphilip
Created: 2012-03-09 16:23:53+00:00
State: open

I'm seeing some severe performance issues with the count method on domain classes as the size of the data being counted increases. Replicating the issue is straightforward:

1. Create a neo4j-mapped Person domain class with two properties: firstName, lastName

2. Insert 10,000 person records

3. Time how long a Person.count() method takes to execute

On a fairly beefy mac (2.53 GHz core 2 duo, 8 GB ram), I'm seeing the count method take 15 seconds, on average, for 10,000 records.