A database is a collection of data organized in a manner that facilitates updation, retrieval and management of the data. Searching an unindexed database having n keys will have a worst case running time of O (n). If the similar data is indexed along with a b-tree, then the similar search operation will run in O(log n) time. Indexing great amounts of data can improve search performance significantly.