You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I work with an e-commerce platform, and we chose use a multi-tenant structure for our database to separate our customers' data (we use the gem apartment to achieve that)
A few days ago, I was experimenting with Electric and wondered if it would be possible to use the shape endpoint like this:
/v1/shape/*.orders
This would return data for every table called orders in different schemas.
For context: I would like to have part of the orders data in small separate app we have (single tenant). We have approximately 1000 schemas and it seems inefficient to call the endpoint for every schema in order to gather all the data I need
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I work with an e-commerce platform, and we chose use a multi-tenant structure for our database to separate our customers' data (we use the gem apartment to achieve that)
A few days ago, I was experimenting with Electric and wondered if it would be possible to use the shape endpoint like this:
/v1/shape/*.orders
This would return data for every table called
orders
in different schemas.For context: I would like to have part of the orders data in small separate app we have (single tenant). We have approximately 1000 schemas and it seems inefficient to call the endpoint for every schema in order to gather all the data I need
Beta Was this translation helpful? Give feedback.
All reactions