Skip to content

How to bootstrap SpiceDB's datastore when migrating from another auth system to AuthZed? #1585

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

You must be logged in to vote

Hi @andyren0110 👋🏻

  • ⚡ The BulkImport API is the recommended way. It leverages the bulk loading features on the underlying databases, the most efficient way to load large chunks of data. It exposes a bidirectional gRPC streaming API, so you can even parallelize data loading. We've seen this be able to ingest very quickly into Postgres instances. You can also run bulk import using zed CLI
  • 👌🏻 Alternatively, you can use zed relationship create/touch command, which supports reading from STDIN, so you can have a script that generates the relationships and pipe it into zed. This comes with all the datastore's transaction ACID overhead, so it would be slower, but has the nicety that it can be imp…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vroldanbet
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