5 ms·
I'm not sure what you mean by "it goes into the first/second schema". My understanding is that you use views to manipulate the data going in and out. The views
by joevandyk 12y ago
I'm not sure what you mean by "it goes into the first/second schema".
My understanding is that you use views to manipulate the data going in and out. The views are in the first/second schemas, but the tables that hold the data don't have to be.
- dyadic 12y agoInteresting. So instead of having a full copy of the database in each schema you would only create the delta and then simulate the rest with views? And then creating a bar with version 1 to 7 would use the views in each schema to insert it, but it would actually be inserted into the database in schema 1?
- joevandyk 12y agoThe database tables don't have to be in schema 1, they can be in any schema, probably the default "public" one. But yes, you don't have to have copies of the data in each schema. You only put the view definition into each schema, and the view definition is responsible for reading/putting data from/to the right place. And you bump the version whenever the view definition's columns need to change.