I don’t think anyone can answer your question, given the information you provided.
Indexes in a relational database are similar to CouchDB views. In both cases, they store a pre-sorted instance of the data, and the database stores this instance in synchronization with canonical data. Both types of databases transparently use the index / view to speed up subsequent queries of the form for which the index / view was created.
Without indexes / views, queries must scan the entire collection of ndata records , and they run in O(n)time. When a query benefits from indexes / views, it executes on O(log n)time.
. , , . , X , Y. - .