Open shyamd opened 4 years ago
For odbx, I have an extended MongoEntryCollection
class that takes a pymongo index model and creates the index if not present (see below). Currently I only do this for id
by default (the underlying database has extra indexes). We could add this by default?
One thing we don't do is enforce MongoDB indexes for performance in querying. We might want to think about how to at least suggest which indexes to create on, even if the server doesn't enforce them.