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

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.
主站蜘蛛池模板: 华容县| 缙云县| 禄丰县| 分宜县| 施甸县| 遵化市| 化德县| 南靖县| 凤阳县| 宁化县| 缙云县| 阿拉善右旗| 商丘市| 湖州市| 阜宁县| 尖扎县| 宁夏| 海丰县| 张家口市| 平凉市| 溆浦县| 清水河县| 达州市| 盐城市| 乌拉特后旗| 隆林| 深圳市| 时尚| 阳西县| 达拉特旗| 漳平市| 永川市| 张北县| 安丘市| 襄樊市| 措勤县| 大港区| 湖北省| 宜君县| 鄂托克前旗| 德庆县|