Commit Graph
8 Commits
Author SHA1 Message Date
Dan Crosta 10c30f2224 remove keep_temp from map_reduce
fixes #258
2011-08-17 16:44:40 -04:00
Dan Crosta 5f05843403 prefer to use map-reduce to db.eval where possible 2011-08-16 08:20:06 -04:00
Dan Crosta 81b69648ef docstring for where() 2011-08-15 16:56:51 -04:00
Dan Crosta 13afead9fb add where() method to QuerySet 2011-07-20 12:41:20 -04:00
Dan Crosta b3ef67a544 get_document_or_404 raises 404 if given an invalid ObjectId
(and possibly on other errors, not sure what else raises
ValidationError)
2011-07-14 18:43:11 -04:00
Dan Crosta 0847687fd1 don't create extra index on _types (fix #222)
mongodb will use an index that begins with _types to service queries
against _types, so the extra index is only needed if no other fields are
indexed in the document. to be safe, we explicitly check all indexes to
see if any begins with _types, and only then prevent creation of the
additional index on _types.
2011-07-11 10:15:55 -04:00
Dan Crosta 859de712b4 only create indexes on first collection access (fix #223) 2011-07-11 09:44:28 -04:00
Dan Crosta 803164a993 add unique index on User.username 2011-07-11 08:38:43 -04:00