ch-2023
10/02/2023, 5:11 PMecordell
10/02/2023, 5:15 PMch-2023
10/02/2023, 5:31 PMch-2023
10/02/2023, 5:32 PMvroldanbet
10/02/2023, 5:37 PMch-2023
10/02/2023, 5:40 PMch-2023
10/02/2023, 7:19 PMch-2023
10/02/2023, 9:23 PMch-2023
10/02/2023, 11:45 PMch-2023
10/03/2023, 12:11 AMvroldanbet
10/03/2023, 8:58 AMvroldanbet
10/03/2023, 9:03 AMvroldanbet
10/03/2023, 9:04 AMgo tool pprof http://$SPICEDB_URL:$METRICS_PORT/debug/pprof/heap
ch-2023
10/03/2023, 11:11 AMch-2023
10/03/2023, 11:16 AMch-2023
10/03/2023, 1:18 PMvroldanbet
10/03/2023, 1:22 PMvroldanbet
10/03/2023, 1:23 PMvroldanbet
10/03/2023, 1:23 PMvroldanbet
10/03/2023, 1:23 PMvroldanbet
10/03/2023, 1:23 PMSPICEDB_OTEL_PROVIDER: none
vroldanbet
10/03/2023, 1:24 PMvroldanbet
10/03/2023, 1:57 PMvroldanbet
10/03/2023, 1:57 PMvroldanbet
10/03/2023, 1:58 PMch-2023
10/03/2023, 1:59 PMvroldanbet
10/03/2023, 1:59 PM--dispatch-cache-max-cost
--dispatch-cluster-cache-max-cost
`
ch-2023
10/03/2023, 1:59 PMch-2023
10/03/2023, 1:59 PMvroldanbet
10/03/2023, 2:00 PMch-2023
10/03/2023, 2:00 PMvroldanbet
10/03/2023, 2:02 PMecordell
10/03/2023, 2:02 PMecordell
10/03/2023, 2:02 PMch-2023
10/03/2023, 2:02 PMvroldanbet
10/03/2023, 2:03 PMvroldanbet
10/03/2023, 2:03 PMvroldanbet
10/03/2023, 2:04 PMch-2023
10/03/2023, 2:04 PMvroldanbet
10/03/2023, 2:05 PMch-2023
10/03/2023, 4:33 PMvroldanbet
10/03/2023, 5:41 PMvroldanbet
10/03/2023, 5:41 PMch-2023
10/03/2023, 5:43 PMvroldanbet
10/03/2023, 5:55 PMch-2023
10/03/2023, 9:46 PMch-2023
10/03/2023, 10:06 PMvroldanbet
10/04/2023, 6:46 AMvroldanbet
10/04/2023, 6:47 AMvroldanbet
10/04/2023, 6:48 AMch-2023
10/04/2023, 8:48 AMvroldanbet
10/04/2023, 8:51 AMvroldanbet
10/04/2023, 8:52 AMch-2023
10/04/2023, 8:59 AMvroldanbet
10/04/2023, 9:08 AMvroldanbet
10/04/2023, 9:08 AMch-2023
10/04/2023, 9:09 AMch-2023
10/04/2023, 4:11 PMvroldanbet
10/04/2023, 5:54 PMvroldanbet
10/04/2023, 5:54 PMvroldanbet
10/04/2023, 5:55 PMch-2023
10/04/2023, 5:57 PMvroldanbet
10/04/2023, 5:58 PMch-2023
10/04/2023, 5:58 PMch-2023
10/04/2023, 5:58 PMvroldanbet
10/04/2023, 5:59 PMch-2023
10/04/2023, 5:59 PMvroldanbet
10/04/2023, 5:59 PMvroldanbet
10/04/2023, 6:00 PMvroldanbet
10/04/2023, 6:00 PMvroldanbet
10/04/2023, 6:02 PMch-2023
10/04/2023, 6:34 PMch-2023
10/05/2023, 3:00 PMJoey
10/05/2023, 3:02 PMJoey
10/05/2023, 3:03 PMch-2023
10/05/2023, 3:04 PMJoey
10/05/2023, 3:06 PMJoey
10/05/2023, 3:06 PMch-2023
10/05/2023, 3:06 PMJoey
10/05/2023, 3:07 PMch-2023
10/05/2023, 3:07 PMJoey
10/05/2023, 3:07 PMJoey
10/05/2023, 3:08 PMch-2023
10/05/2023, 3:09 PMch-2023
10/05/2023, 3:09 PMJoey
10/05/2023, 3:10 PMJoey
10/05/2023, 3:10 PMJoey
10/05/2023, 3:11 PMecordell
10/05/2023, 3:12 PMecordell
10/05/2023, 3:12 PMch-2023
10/05/2023, 3:17 PMch-2023
10/05/2023, 8:15 PMJoey
10/05/2023, 8:36 PMJoey
10/05/2023, 8:36 PMch-2023
10/05/2023, 8:49 PMJoey
10/05/2023, 8:53 PMmax(rate(pgxpool_acquire_duration_ns[$__rate_interval]))
ch-2023
10/06/2023, 11:37 AMch-2023
10/06/2023, 12:02 PMvroldanbet
10/06/2023, 12:42 PMvroldanbet
10/06/2023, 12:43 PMzed
passing the --explain
flag? That would give you an easier way to visualize where time is being spentch-2023
10/06/2023, 1:40 PMch-2023
10/06/2023, 2:04 PMvroldanbet
10/06/2023, 2:57 PMch-2023
10/06/2023, 8:31 PMch-2023
10/06/2023, 8:33 PMJoey
10/06/2023, 8:42 PMJoey
10/06/2023, 8:42 PMJoey
10/06/2023, 8:43 PMch-2023
10/06/2023, 9:14 PMch-2023
10/08/2023, 2:29 PMJoey
10/08/2023, 4:04 PMch-2023
10/08/2023, 6:47 PMJoey
10/08/2023, 6:50 PMJoey
10/08/2023, 6:50 PMecordell
10/08/2023, 6:51 PMch-2023
10/08/2023, 6:56 PMecordell
10/08/2023, 6:57 PMecordell
10/08/2023, 6:59 PMch-2023
10/08/2023, 7:01 PMecordell
10/08/2023, 7:02 PMJoey
10/08/2023, 7:02 PMch-2023
10/08/2023, 7:03 PMch-2023
10/08/2023, 7:37 PMJoey
10/08/2023, 9:38 PMJoey
10/08/2023, 9:38 PMJoey
10/08/2023, 9:38 PMJoey
10/08/2023, 9:38 PMecordell
10/08/2023, 9:42 PMch-2023
10/08/2023, 10:17 PMch-2023
10/09/2023, 9:04 PMJoey
10/09/2023, 9:05 PMJoey
10/09/2023, 9:06 PMJoey
10/09/2023, 9:06 PMJoey
10/09/2023, 9:06 PMch-2023
10/09/2023, 9:18 PMch-2023
10/09/2023, 9:20 PMJoey
10/09/2023, 9:28 PMJoey
10/09/2023, 9:28 PMduration
issue thoughch-2023
10/09/2023, 10:19 PMch-2023
10/10/2023, 3:16 PMch-2023
10/10/2023, 5:18 PMvroldanbet
10/10/2023, 6:40 PM--explain
to understand where time is being spent? We can get that through the traces, but in a more lower level way that can be difficult to parsevroldanbet
10/10/2023, 6:41 PMorganization
are relatively wide (e.g. key, admin->key, owner->key)? that's something you should see with --explain
ch-2023
10/10/2023, 7:05 PMecordell
10/10/2023, 7:10 PMdefinition user {
key:key
}
definition key {}
definition organization {
owner: user
admin: user
member: user
permission write: owner->key + admin->key
permission read: write->key + member->key
}
ch-2023
10/10/2023, 7:11 PMecordell
10/10/2023, 7:15 PMdefinition user {
relation key: key
}
definition key {}
definition organization {
relation owner: user
relation admin: user
relation member: user
relation key: key
permission write = key & (owner->key + admin->key)
permission read = write + (key & member->key)
}
at the very least you don't need to include all of the users in the result setecordell
10/10/2023, 7:17 PMch-2023
10/10/2023, 7:18 PMch-2023
10/10/2023, 7:19 PMch-2023
10/10/2023, 7:20 PMch-2023
10/10/2023, 7:55 PMvroldanbet
10/10/2023, 9:23 PMvroldanbet
10/10/2023, 9:24 PMch-2023
10/10/2023, 9:26 PMJoey
10/10/2023, 9:26 PMJoey
10/10/2023, 9:26 PMch-2023
10/10/2023, 9:28 PMch-2023
10/10/2023, 9:29 PMJoey
10/10/2023, 9:30 PMch-2023
10/10/2023, 9:31 PMch-2023
10/10/2023, 9:31 PMch-2023
10/10/2023, 9:32 PMJoey
10/10/2023, 9:33 PMJoey
10/10/2023, 9:33 PMch-2023
10/10/2023, 9:35 PMecordell
10/10/2023, 10:32 PMuser:me#key@key:org1_thekey
instead of user:me#key@key:thekey
and org:org1#key@key:thekey
.
down the line, if you want to make cross-org keys, the schema would allow you to.
I do think you've found a case that we need to optimize, but I'm trying to understand your requirements a bit betterch-2023
10/10/2023, 10:35 PMch-2023
10/10/2023, 10:35 PMch-2023
10/10/2023, 10:36 PMch-2023
10/10/2023, 11:42 PMJoey
10/11/2023, 12:41 AMJoey
10/11/2023, 12:42 AMJoey
10/11/2023, 12:42 AMJoey
10/11/2023, 12:43 AMJoey
10/11/2023, 1:55 AMJoey
10/11/2023, 1:56 AMJoey
10/11/2023, 1:56 AMview
and viewable_by_key
or somesuch, as the current workaroundJoey
10/11/2023, 1:56 AMch-2023
10/11/2023, 2:06 PMch-2023
10/11/2023, 2:09 PMJoey
10/11/2023, 3:00 PMJoey
10/11/2023, 3:00 PMJoey
10/11/2023, 3:00 PMch-2023
10/11/2023, 3:08 PMJoey
10/11/2023, 3:19 PMJoey
10/11/2023, 3:19 PM--explain
or EXPLAIN
?Joey
10/11/2023, 3:20 PM--explain
will show the permissionsJoey
10/11/2023, 3:20 PMJoey
10/11/2023, 3:20 PMJoey
10/11/2023, 3:20 PMch-2023
10/11/2023, 3:20 PMJoey
10/11/2023, 3:20 PMorg->combined_perm
vs org->read + org->write + org->admin
Joey
10/11/2023, 3:20 PMch-2023
10/11/2023, 3:24 PMch-2023
10/11/2023, 3:25 PMJoey
10/11/2023, 3:50 PMJoey
10/11/2023, 3:50 PMJoey
10/11/2023, 3:50 PMJoey
10/11/2023, 3:51 PMch-2023
10/11/2023, 3:52 PMJoey
10/11/2023, 3:56 PMpermission whatever = first + second + third
on the orgJoey
10/11/2023, 3:57 PM