我需要使用pymongo.
似乎collection.create_index和collection.ensure_index都不支持sparse选项。
根据mongodb 问题跟踪器perl 和 php 驱动程序确实支持命令sparse选项ensure_index;看起来没有计划在 python 驱动程序中提供它..
有没有其他方法可以使用创建稀疏索引pymongo?
我需要使用pymongo.
似乎collection.create_index和collection.ensure_index都不支持sparse选项。
根据mongodb 问题跟踪器perl 和 php 驱动程序确实支持命令sparse选项ensure_index;看起来没有计划在 python 驱动程序中提供它..
有没有其他方法可以使用创建稀疏索引pymongo?