Skip to content

Calculation of Cache Hit Ratio #1551

Answered by ecordell
ilterpehlivan asked this question in Q&A
Discussion options

You must be logged in to vote

This is a big topic; I'll try and give a few pointers below. We can also work through specific issues if you can provide more details.

We ran some load testing with 2 level schema and 1 million relationships but pur P95 is way higher (700ms) than what is posted in this article (https://authzed.com/blog/google-scale-authorization#checkpermission-latency-3)

To preface this discussion, it can be difficult to generate a representative load for SpiceDB: the schema, the shape and quantity of the data stored, and the specific access patterns can have a big effect on performance.

If you hit the same relationship over and over again, you'll get perfect caching and see amazing, unrealistic result…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ilterpehlivan
Comment options

Answer selected by vroldanbet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants