<div dir="ltr">We are splitting up a larger schema into separate databases -- there&#39;s a set of tables that have a very small set of relations to the other tables, so good candidates for separating out.<div><br></div><div>Of course, w/o the tables all in a single DB the joins have to be done in code.<br><div><br></div><div>We are looking at using PostREST (<a href="https://github.com/begriffs/postgrest">https://github.com/begriffs/postgrest</a>) which places a REST API on top of Postgresql.</div><div><br></div><div>We have a fair amount of business logic in the DBIC result (and resultset) classes, so the question is if we can reuse this code directly.   For example, would it be possible to write a Storage layer that instead of talking to a DBI connected database one that is access via by HTTP.</div><div><br></div><div>Are there examples of non-DBIx::Class::Storage layers?   Does that even make sense in DBIC context?</div><div><br></div><div><br></div><div>I&#39;m also not convinced that PostREST makes sense.   Why talk to the DB via HTTP instead of using DBI directly?   To make it useful we would need to put much more business logic into the database as views and stored procedures.   And that feels like going back in time to when DBAs were gatekeepers on every change and access to the DB.    Anyone else looked at this?</div><div><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Bill Moseley<br><a href="mailto:moseley@hank.org" target="_blank">moseley@hank.org</a></div>
</div></div></div>