I don\'t understand the difference between create_index and ensure_index in pymongo. On the MongoDB indexes page, it says
create_index
ensure_index
yo
I would recommend creating metaclass and ORM. From metaclass init call init_schema method for initializing the counters, schema, keys etc. This way you prevent calling ensure_index every query or collection update :)