#When Zookie is NOT provided

1 messages · Page 1 of 1 (latest)

rapid oyster
#

In situations where a zookie is not provided, Permify will find the freshest zookie and the cache will continue to work in the same manner.

obsidian badger
#

Is there any more writing on this? It's not clear to me what "freshest zookie" means. Does that mean the most up to date timestamp that is cached?

rapid oyster
#

Actually freshest zookie means finding the ID of the most recent database transaction (the last write or delete operation).

#

Every transaction is recorded in the 'transactions' table, and when a Permify Zookie is not provided, it retrieves the ID of the latest transaction from this table. This ID represents the most current snapshot of the database. After a query is executed with this ID, the results are then cached using this ID.

#

Hope that make sense.

obsidian badger
#

Yeah that makes sense. So if two zookie-free requests come in, the first will not be cached, but the second will (assuming no writes in the middle)