What is the purpose of Lookup operation in ClusterPoint

212 Views Asked by At

I've been trying to use ClusterPoint database for my project, but documentation does not explain how "Lookup" can be used. It seems there are already methods to retrieve document by ID so my question is - How does Lookup differ from Retrieve?

Please explain or point to better documentation.

1

There are 1 best solutions below

1
On

"Lookup" is more lighter and quicker operation comparing to "Retrieve" as it just looks for document id in index and returns it. However with "Lookup" it's also possible to get selected fields from document by using "list" parameter. In this case "Lookup" becomes very similar to "Retrieve".