We're rebuilding an internal tool on Supero. Its Postgres is also written by our billing system and a nightly ETL job. Do we copy those tables into Supero schemas, or point a connector at them?
Our Postgres stays the system of record: connect it or migrate it?
Common question, written up by the Supero team.
1 answer
When another system remains the writer of record, connect rather than migrate. Register the tables through a connector and they become schemas in your project. Your app reads them through the same CRUD and query API as any other schema, so the app code doesn't need to know where a table lives. Then choose per table:
- live: each request queries your database, so there's no second copy to keep in step.
live_readis read-only; PostgreSQL also supportslive_readwrite, which writes through to the source. - sync: rows are copied into Supero on a schedule, a webhook or a manual run, and your app reads the copy.
Data the new app creates rather than mirrors belongs in ordinary schemas.
Two things to plan for. A live table needs identity fields, the columns that give each row a stable key, chosen at the Review step; the wizard won't save it without them. And deleting a connector also deletes the object types it created and the data in them, so export first if you ever remove one.
Your answer
Know the answer? Sign in to post it. It takes an email address and a 6-digit code.
Sign in to answer