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 = My::Second::Schema->clone;
$schema2->storage( $schema1->storage );


Thanks,


-- 
Bill Moseley
mose...@hank.org
_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk

Reply via email to