Hi, I have a problem on my local environment. Spi...
# spicedb
j
Hi, I have a problem on my local environment. SpiceDB is in the Docker with datastore in Postgress. It takes almost 5 seconds to write and check the relations. Is it possible to write it faster? Or is there any way to know when it's written down? My test in Java Using this
PermissionsServiceGrpc.PermissionsServiceBlockingStub
permissionsService
When I write any relationship
permissionsService.writeRelationships(request);
and I'll run a check right away.
permissionsService.checkPermission(request);
It returns
PERMISSIONSHIP_NO_PERMISSION
But if I wait about 5 seconds and call it again
permissionsService.checkPermission(request);
It returns the correct answer
PERMISSIONSHIP_HAS_PERMISSION