MongoDB - creating and viewing indexes
//
According to definition from Wikipedia , A database index is a data structure that improves the speed of data retrieval operations on a database table at the cost of additional writes and the use of more storage space to maintain the extra copy of data. Indexes are used to quickly locate data without having to search every row in a database table every time a database table is accessed.
Data is stored on disk based storage devices as block of data. These disk block of data are stored much like linked lists. When we perform a linear search on a field that is not sorted then database have to perform N/2 accesses.
Read More about it from the following link : http://coding-guru.com/mongodb-creating-and-viewing-indexes/ posted by Maz
MongoDB - creating and viewing indexes
Tags:
0 comments: