HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Each index occupies some storage space, during insert, update, and also need to delete the index operation. So, if you rarely read the collection, it is recommended not to use the index.
Since the index is stored in memory (RAM), you should make sure to limit the size of the index does not exceed the memory.
If the size of the index is greater than the memory limitations, MongoDB will remove some of the index, which will lead to performance degradation.
Index can not be use the following query:
So, check your statement whether the index is a good habit, can explain to view.
From version 2.6, if the value of the existing index key index field exceeds the limit, MongoDB will not create the index.
If the index field value of a document exceeds the limit of the index key, MongoDB does not convert any document into a collection index. Similar mongorestore and mongoimport tools.