andreasronge/neo4j — pull request #73 by vivekprahlad (2011-11-22 16:49:28+00:00)
Title: Performance improvements + rule node fixes

Hi Andreas,

This pull request has two major changes:
- Avoids unnecessary creation of Neo4j::Rails::Model rule node. The recursive rule node triggering was causing the Neo4j::Rails::Model class to have it's own rule node, which is unnecessary
- Significant erformance boost for creating large numbers of models in a transaction (in my tests, i'm seeing close to a 45 - 50% improvement). Most of this has been achieved by updating the count of the _all node once per class instead of once per instance.

Cheers,
Vivek