Reference
snapshot()
Hold a point-in-time view of a namespace while writes continue.
Parameters
Call snapshot() on an open namespace. It takes no arguments.
Return value
A Snapshot whose reads see the state when it was created. Use it for related queries or counts that need to agree. Release the reference when you finish so old segments can be reclaimed.
Example
Python
before = docs.snapshot() docs.upsert(1, text="Lease renewed") print(before.text(1)["body"]) # Renew the apartment lease print(docs.text(1)["body"]) # Lease renewed