- MongoDB Administrator’s Guide
- Cyrus Dasadia
- 87字
- 2021-07-02 15:47:47
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.
推薦閱讀
- JavaFX Essentials
- Java深入解析:透析Java本質(zhì)的36個話題
- HTML5+CSS3網(wǎng)站設(shè)計基礎(chǔ)教程
- MySQL數(shù)據(jù)庫基礎(chǔ)實例教程(微課版)
- The Complete Coding Interview Guide in Java
- 組態(tài)軟件技術(shù)與應(yīng)用
- Swift 4 Protocol-Oriented Programming(Third Edition)
- Arduino計算機視覺編程
- Kotlin極簡教程
- Python數(shù)據(jù)可視化之美:專業(yè)圖表繪制指南(全彩)
- App Inventor少兒趣味編程動手做
- Distributed Computing in Java 9
- Instant Automapper
- DB2SQL性能調(diào)優(yōu)秘笈
- Isomorphic Go