- 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.
推薦閱讀
- iOS 9 Game Development Essentials
- 無代碼編程:用云表搭建企業數字化管理平臺
- Create React App 2 Quick Start Guide
- Webpack實戰:入門、進階與調優
- Mastering React
- 運維前線:一線運維專家的運維方法、技巧與實踐
- OpenCV 3計算機視覺:Python語言實現(原書第2版)
- Python開發基礎
- C指針原理揭秘:基于底層實現機制
- Clojure High Performance Programming(Second Edition)
- C++服務器開發精髓
- Java核心編程
- C語言從入門到精通(視頻實戰版)
- HTML5 Game Development by Example:Beginner's Guide(Second Edition)
- C++ Primer(中文版)(第5版)