I need to create a sparse index from the python script using pymongo.
It seems like both collection.create_index and collection.ensure_index don't support sparse option.
According to the mongodb issue tracker perl and php drivers do support sparse option to ensure_index command already; looks like there is no plans to make it available in the python driver..
Are there any alternative ways to create a sparse index using pymongo?