torben_26072
02/20/2024, 11:53 AMvroldanbet
02/20/2024, 12:14 PMLookupResources
could be a bottleneck, depending on how it's used. It supports cursoring to help retrieving very large number of resources without buffering it in memory first, but please do note that it does not guarantee ordering and there may be duplicates found in various branches.
If used without cursoring, it may exhaust server resources, as it has to compute the whole result before start streaming it.torben_26072
02/20/2024, 12:45 PMtorben_26072
02/20/2024, 3:23 PMvroldanbet
02/20/2024, 3:24 PMvroldanbet
02/20/2024, 3:28 PMtorben_26072
02/20/2024, 3:42 PMdocker pull authzed/spicedb
and started with
docker run \
--name spicedb-testing \
-p 50051:50051 \
authzed/spicedb \
serve-testing
I did not change any settings. The memory store seems likely, because after stopping the Docker container the data is gone.
Would using Postgres/CockroachDB improve the performance when a lot of relations are defined?vroldanbet
02/20/2024, 3:44 PMserve-testing
then you are using the memory datastore, which is not optimized for production workloads. This isn't to say there isn't an issue here, but the memory datastore wouldn't be the reference implementation for performance on large datasets. Postgres is likely a good place to start.torben_26072
02/20/2024, 4:15 PMtorben_26072
02/20/2024, 6:11 PMvroldanbet
02/20/2024, 6:33 PM