FindDocumentById() vs FindDocumentByKeyValue()

0 votes
What will work faster - FindDocumentById() or FindDocumentByKeyValue() over 1,000,000 documents in a collection? In case of FindDocumentByKeyValue() we pass a unique id.
asked Nov 15, 2014 in App42 Cloud API-BaaS by vladislav (10 points)

1 Answer

0 votes

Hello Vladislav,

FindDocumentById would be faster than key/value method as it has direct reference of doc in the database and would give you the fastest result. Response of key/value method would be slower however non trivial to your app performance.image

Let us know if you have more question for us.

Thanks,

Himanshu Sharma

 

answered Nov 16, 2014 by hs00105 (2,005 points)
I hope your query has been resolved, kindly let us know if you have more questions for us.
Thanks,
Himanshu Sharma
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...