Joey
03/17/2022, 1:28 PMwilliamdclt
03/17/2022, 1:34 PMecordell
03/17/2022, 2:55 PManalyze
call firstJake
03/17/2022, 2:59 PMJake
03/17/2022, 3:07 PMwilliamdclt
03/17/2022, 3:17 PMJake
03/17/2022, 3:43 PMwilliamdclt
03/17/2022, 3:45 PMwilliamdclt
03/17/2022, 4:10 PMluke
03/17/2022, 4:50 PMWriteRelationships
request with all of them 😝 but i'm wondering if there is an ideal chunk size to break them up into.Jake
03/17/2022, 4:51 PMluke
03/17/2022, 4:52 PMJake
03/17/2022, 4:52 PMJake
03/17/2022, 4:52 PMluke
03/17/2022, 4:53 PMluke
03/17/2022, 4:53 PMluke
03/17/2022, 4:55 PMWriteRelationships
call per record, would that have any adverse downstream effects besides just taking longer to finish?Jake
03/17/2022, 4:56 PMluke
03/17/2022, 4:57 PMwilliamdclt
03/17/2022, 5:15 PMWriteRelationship
, which would allow batching these deletes with other writes. About half of my operations are such "delete by filter", so I'm having to make an API call per relationship which is very very slow, it's taking multiple days to write my production datasetJake
03/17/2022, 5:15 PMJake
03/17/2022, 5:16 PMwilliamdclt
03/17/2022, 5:16 PMJake
03/17/2022, 5:17 PMJake
03/17/2022, 5:18 PMwilliamdclt
03/17/2022, 5:24 PMaccess_granted
or user_created
or similar), or it might lead to a delete (access_revoked
, user_deactivated
). Sometimes both (user_role_updated
).
That's done by a Kafka consumer. I have a backlog of a few hundred million events to go through before it has caught up and starts processing new events in near-real-time, and at the moment I'm having to make at least 1 API calls per event: if WriteRelationships
supported deletes by filter, I could process these events by batch which probably would be much much fasterwilliamdclt
03/17/2022, 5:24 PMuser
03/17/2022, 6:11 PMbalchu
03/18/2022, 5:21 AM--datastore-conn-uri="postgres://postgres:password@localhost:5432/spicedb?sslmode=disable&plan_cache_mode=ffff
.
It gave me this error.
Server error (FATAL: invalid value for parameter \"plan_cache_mode\": \"ffff\" (SQLSTATE 22024
But when i pass it with valid value like this.
--datastore-conn-uri="postgres://postgres:password@localhost:5432/spicedb?sslmode=disable&plan_cache_mode=force_custom_plan`?
Spicedb starts without complaining. I'm guessing pgx took the settings.williamdclt
03/18/2022, 9:45 AM