What’s faster
doc.getDocumentByKey()
or
doc.getDocumentByUNID()
Regards
What’s faster
doc.getDocumentByKey()
or
doc.getDocumentByUNID()
Regards
Subject: by UNID is pretty fast…
…whereas, as Obinna points out, reading a document by key may be slow depending on the view. See, the index may have to updated (or created from scratch if the view hasn’t been used in a while).
Subject: RE: lotus script performance question
Do you mean?:view.getDocumentByKey()
or
database.getDocumentByUNID
It would really depend on what kind of load the environment is under, and how many documents are in a view.
getDocumentByKey has been known to be a bit of a performance hog.