官术网_书友最值得收藏!

There's more...

Over time, you may come across scenarios that require redesigning your indexing strategy. This may be by adding a new feature in your application or simply by identifying a more appropriate key that can be indexed. In either case, it is highly advisable to remove older (unused) indexes to ensure you do not have any unnecessary overhead on the database.

In order to remove an index, you can use the db.<collection>.dropIndex(<index_name>). If you are not sure about your index name, use the  db.<collection>.getIndexes() function.
主站蜘蛛池模板: 吉木萨尔县| 洞口县| 通化县| 长宁县| 那坡县| 微博| 兴海县| 赤水市| 容城县| 尤溪县| 台前县| 新津县| 旅游| 灵璧县| 平舆县| 体育| 仙居县| 蕲春县| 绥江县| 同心县| 宜阳县| 辰溪县| 富平县| 额济纳旗| 青田县| 右玉县| 曲沃县| 新营市| 旬阳县| 龙山县| 吉林市| 达尔| 谷城县| 广灵县| 莱州市| 永嘉县| 河东区| 凌云县| 邢台市| 聂拉木县| 兴化市|