1. Andy Mikhailenko
  2. doqu
Issue #16 resolved

Count is slow

Andy Mikhailenko
repo owner created an issue

{{{

q = SomeModel.objects(db) q.count() # slow! 1234 spec = db.lookup_manager.combine_conditions(q._conditions) db.connection.find(spec).count() # fast! 1234 }}} Obviously the first version iterates and decorates items. Which it shouldn't do.