Skip to content

Safe to store relationship migrations in a table in SpiceDB Postgres? #1895

Closed Answered by vroldanbet
theronic asked this question in Q&A
Discussion options

You must be logged in to vote

You can create a table in the SpiceDB schema and it shouldn't be removed, but we do not recommend tinkering with the database as it is an implementation detail, and any behavior may change down the line.

I assume you are starting to look into migrating data into SpiceDB. Without more details on the particulars of your business domain, I don't see why you couldn't issue ReadRelationships to determine if a row in Datomic has been written to SpiceDB, unless you are unable to uniquely identify a business entity from the relationship stored in SpiceDB.

We provide some advice on data migration here: https://authzed.com/blog/writing-relationships-to-spicedb

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jzelinskie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants