sleipnir042
01/04/2022, 6:24 PMecordell
01/04/2022, 6:27 PMsleipnir042
01/04/2022, 6:32 PMrelation_tuple
for SpiceDB to consume. This is OK, but runs the risk of being a serious bottleneck in the application, because it slows down writes by a factor of 100 (probably more as our data grows). It also forces us to answer a lot of questions about organization, documentation, and responsible parties to ensure it's maintainable. If we could run this connector instead, it would get us away from maintaining these triggers and requiring back-end developers to know about them, and know how the presence of the triggers impacts DB schema changes.sleipnir042
01/04/2022, 6:36 PMecordell
01/04/2022, 6:45 PMsleipnir042
01/04/2022, 6:51 PMsleipnir042
01/04/2022, 6:53 PMecordell
01/04/2022, 7:02 PMtx = db.BeginTx()
spiceClient.WriteRelationships(...)
tx.WriteData(...)
tx.Commit()
if commit_error() {
tx.Rollback()
spiceClient.DeleteRelationships(...)
}
ecordell
01/04/2022, 7:02 PMecordell
01/04/2022, 7:03 PMsleipnir042
01/04/2022, 7:03 PMecordell
01/04/2022, 7:04 PMsleipnir042
01/04/2022, 7:04 PMecordell
01/04/2022, 7:05 PMecordell
01/04/2022, 7:05 PMsleipnir042
01/04/2022, 7:05 PMsleipnir042
01/04/2022, 7:11 PMecordell
01/04/2022, 7:12 PMsleipnir042
01/04/2022, 7:14 PMsleipnir042
01/04/2022, 7:14 PMecordell
01/04/2022, 7:15 PMecordell
01/04/2022, 7:16 PMsleipnir042
01/04/2022, 7:17 PMsleipnir042
01/04/2022, 7:19 PMsleipnir042
01/04/2022, 7:19 PMsleipnir042
01/04/2022, 7:21 PMecordell
01/04/2022, 7:29 PM