Do I need to worry about # of documents when I use only get(id)?

Hi,

This is really really basic question, but I’ve never questioned it myself.
I use get(document id) 80% of the times to retrieve a document. When the # of documents gets larger and larger, do I need to create a view and index them or is it happening internally?

Thanks,
Moon

Lookup by document key is always fast in Couchbase Server, as that’s how the documents are organised internally.

You only need to create a view or secondary index if you are trying to access documents by some other property.

1 Like