Open
Description
Hi @rozza!
Just wanted to pick your brain about the default index creation. Seems like non-background indexes are only useful at the very early stage of a project. When any of the collections grow fairly large (say above 1M documents), createIndex
blocks the database for a significant amount of time.
It's a bit annoying to add {'index_background': True}
in each Document's meta and sometimes you're just not able to control it that way. E.g. changing allow_inheritance
will create a new non-background index (although I may be wrong whether _cls
-related indexes respect meta's index_background
or not).
I'd argue that { background: true }
should be a default option in MongoEngine. What do you think?