Posted Tue, 27 Nov 2007
The slowdown when rules are present are to the record keeping that is done to notify that a rule should be evaluated again (rule evaluations are queued). Basicaly the loop 'is this row being watched by a rule' is the slowdown. I'll try attacking this first.
With 2 rules (unoptimized rules): hits.minute => hits.mean.1hour @ 60*60 hits.minute => hits.mean.1day @ 60*60*24 insertion rate = 7600/sec With 2 rules (optimized chaining) hits.minute => hits.mean.1hour @ 60*60 hits.mean.1hour => hits.mean.1day @ 60*60*24 insertion rate = 12280/sec With 9 rules (optimized chaining): insertion rate: 10000/sec With 0 rules: trial 1: 40000/sec trial 2: 26700/sec