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

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.
主站蜘蛛池模板: 北川| 柳州市| 太保市| 环江| 威宁| 若羌县| 海原县| 来宾市| 革吉县| 万年县| 牟定县| 连山| 通渭县| 拉萨市| 元谋县| 于都县| 平乡县| 旬阳县| 蕉岭县| 天津市| 石屏县| 乐昌市| 会同县| 沂源县| 巫山县| 大庆市| 渝中区| 临沭县| 会泽县| 乳源| 休宁县| 会同县| 聊城市| 克拉玛依市| 建始县| 浪卡子县| 兰西县| 固始县| 湘潭县| 铁岭县| 林口县|