logo       

Re: Replication: msg#00147

Subject: Re: Replication
On Wed, Oct 24, 2007 at 08:18:51PM +0100, Matt S Trout wrote:
> On Wed, Oct 24, 2007 at 11:37:50AM -0400, Jim Spath wrote:
> > What is the current state of replicated database support in DBIx::Class?
> > 
> > We are considering creating a master/slave setup with our MySQL 
> > database, but weren't sure if it would be easy to support it in our 
> > Catalyst/DBIx::Class applications.
> > 
> > From previous discussions on the list, it seems like DBD::MultiPlex is 
> > out of favor?
> > 
> > I searched CPAN and found DBIx::Class::Storage::DBI::Replication, which 
> > utilizes DBD::Multi.  It's labeled as experimental, which makes me 
> > nervous about using it in a production enviroment, but it sounds like 
> > exactly what I am looking for.  Is it stable?
> 
> The authors are using it in production.
> 
> They did not, however, write any tests for it. At all.
> 
> So I marked it EXPERIMENTAL on the grounds that the plural of anecdote is
> not data.
> 
> A client of Shadowcat's is also interested in this soon; much though I dislike
> being commercial on this list now would be a really good time for people who
> care about this to mail me at my work address and I'll see about organising
> one of the DBIC contribs we contract to do some sponsored test-writing split
> between all the commercial interests involved.

With a small change to DBD::multi it should be possible to use the DBI
test suite to test the "transparency" of DBD::Multi.

In theory you could just do this:

    DBI_AUTOPROXY='dbi:Multi:' make test

The only change needed would be for DBD::Multi to support this syntax

    DBI->connect("dbi:Multi:dsn=$the_dsn_to_connect_to", $user, $pass)

I'd highly recommend it. It's a great way to give 'transparent plumbing'
drivers like this a work out.

The DBI uses the same mechanism to test DBD::Gofer and I can vouch for
the fact that it's brutally effective at spotting all sorts of edge cases.
(I've not done any coverage analysis recently but I'm sure there are
many large gaps. That doesn't stop this approach being very helpful.)

Tim.



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
audio.irate.dev...    yellowdog.gener...    ietf.ips/2002-0...    xfree86.fonts/2...    busybox/2003-07...    emacs.jdee/2004...    linux.mandrake....    hardware.microc...    user-groups.lin...    science.analysi...    version-control...    db.filemaker.de...    cluster.openmos...    mail.eyebrowse....    text.xml.xerces...    kde.devel.kwrit...    finance.moneyda...    gcc.regression/...    network.routing...    os.freebsd.deve...    recreation.radi...    qnx.openqnx.dev...    python.xml/2002...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe