memoonliteOriginal post
Rank 3: Container
Hello everyone! 😊
My goal is to get a single document, which I can do by either using getDocument() or listDocuments() and using a query. The result will be the same.
I was wondering, is there difference in performance between these two ways of retrieving a single document?
I would think getDocument() is more performant, because it's specifically designed to get one document. 🤔
Summary
There is a significant performance difference between `getDocument()` and `listDocuments()`. `getDocument()` is more performant as it is specifically designed to retrieve a single document and never hits the database.