Here is a result with negating:
# spicedb
k
Here is a result with negating:
Copy code
http.response_time:
  min: ......................................................................... 563
  max: ......................................................................... 9926
  mean: ........................................................................ 4299.6
  median: ...................................................................... 3984.7
  p95: ......................................................................... 8024.5
  p99: ......................................................................... 9230.4
http.responses: ................................................................ 396
and without by your request:
Copy code
http.response_time:
  min: ......................................................................... 374
  max: ......................................................................... 9089
  mean: ........................................................................ 2564.5
  median: ...................................................................... 2018.7
  p95: ......................................................................... 6312.2
  p99: ......................................................................... 8024.5
http.responses: ................................................................ 390
A little better, but still far from what we need. We are running e2e load test, but just in case, I attach a screenshot with example of such trace to assure you that bottleneck is SpiceDB, but not something else https://cdn.discordapp.com/attachments/844600078948630559/1350114521381081190/image.png?ex=67d58fa1&is=67d43e21&hm=0345b5a499cbd02508cf356b2869bb555ed539ee945f9b7413c90dc38255203b&
v
which version are you using? there is a bug in check bulk that is fixed in main branch, so I suggest you check the nightly build and test it
can you show us where is time being spent in that check request?
seems like there is potentially connection pool contention, or DB load issues
k
HI. Thanks for reply. I tested several times on
latest
tag, but to be honest I didn't notice any performance impact. Here is a trace example that looks similar between v1.41.0 and latest tag. It's definitely database issue, because to implement our sophisticated requirements we have to check a lot of permissions and relations which cause many queries to database. So far, I don't see a problem in SpiceDB itself, rather in SpiceDB schema capabilities (using existing operators it's hard to express our requirements in easy way) or we lack of understanding how to model our requirements in effecient way. Thanks! https://cdn.discordapp.com/attachments/1350114521594986567/1350809224317239441/image.png?ex=67d8169f&is=67d6c51f&hm=a1c5143ed7dc3f9c718b50f948c05c5b425780d1008c4991a73011edcde83a36&
j
that graph shows a synchronous bulk check
which is what we fixed in HEAD
k
I see. Any plans to release this fix to stable version v1.41.1?
j
it'll go out in 1.42.0 most likely
if you're not seeing any improvement in HEAD, then something else is amiss
k
3 Views