- 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.
推薦閱讀
- TypeScript Blueprints
- Delphi程序設(shè)計基礎(chǔ):教程、實驗、習(xí)題
- 劍指JVM:虛擬機實踐與性能調(diào)優(yōu)
- 從程序員到架構(gòu)師:大數(shù)據(jù)量、緩存、高并發(fā)、微服務(wù)、多團隊協(xié)同等核心場景實戰(zhàn)
- 游戲程序設(shè)計教程
- Python Network Programming Cookbook(Second Edition)
- Mastering Apache Maven 3
- Mastering ROS for Robotics Programming
- Azure Serverless Computing Cookbook
- Machine Learning for Developers
- 玩轉(zhuǎn).NET Micro Framework移植:基于STM32F10x處理器
- AI自動化測試:技術(shù)原理、平臺搭建與工程實踐
- Java核心技術(shù)速學(xué)版(第3版)
- R語言與網(wǎng)站分析
- JavaScript程序設(shè)計實例教程(第2版)