[Dbix-class] Dynamically removing an auto-increment column
steve at ibctech.ca
Tue Dec 8 20:46:21 GMT 2009
Peter Rabbitson wrote:
> Steve Bertrand wrote:
>> (Un)fortunately, this was a case of reading from a stale replicated
>> MySQL server...
> Are you doing the reading manually or are you using the Replicated
> storage driver? If the former - take a look at Replicated. If the
> later - make sure you wrap your inserts in a transaction - this will
> trigger an "always-read-from-master" mode.
I am using Replicated, and I'll have a look at wrapping in a transaction.
The entire DBIx::Class is a lot to take in... it took me two days to
figure out that all I had to do to switch between Replicated storage and
normal DBI storage via a config file was to create a simple subclass ;)
...quite different from what I'm used to.
More information about the DBIx-Class