[Dbix-class] Two schemas, one storage
Bill Moseley
moseley at hank.org
Sat Jun 29 22:38:54 GMT 2013
I have two DBIC schemas that originally pointed to two different databases.
The tables have been migrated into a single database. I'm still
connecting to each schema separately, but with the same connection
parameters.
I can cut my database connections in half if I use a single connection for
both schemas, but I'd like to keep the two sets of DBIC result classes
separate.
This seems to work, but wondering what pitfalls there might be:
my $schema2 =3D My::Second::Schema->clone;
$schema2->storage( $schema1->storage );
Thanks,
-- =
Bill Moseley
moseley at hank.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20130629/910=
0e77e/attachment.htm
More information about the DBIx-Class
mailing list