#When Zookie is NOT provided
1 messages · Page 1 of 1 (latest)
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.
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?
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.
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)