IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New That's my kind of ugly
I've done more maintenance that way than I care to remember. (And obviously more than I did remember at the time I was asking.)
--

Drew
New It's also an interesting lesson in pragmatism.
Whilst it has it's own kind of elegance, a lot of purist programmers will cringe at this solution. They would prefer Leveraging The Power Of SQL directly, which ignores, however, the real-world issue that the database can't be unavailable for an hour whilst your big, clever query runs to completion...

Wade.

Q:Is it proper to eat cheeseburgers with your fingers?
A:No, the fingers should be eaten separately.
New I've done round trips mySQL -> vim -> PHP -> mySQL
Run a query and grab the output.

Search/replace in vim.

Save as a PHP script that issues updates in batches of n.


I've done this to move sites to new servers when the respective mySQL boxes couldn't talk to each other.
--

Drew
     Dumb SQL question - (drook) - (12)
         My lazy way - (crazy) - (3)
             You have ... - (beepster) - (2)
                 Depends - (crazy) - (1)
                     Maybe not so simple then - (drook)
         Did you try a self-join? - (static) - (1)
             Not yet, but about to - (drook)
         And then there is the (ugly) semi-manual way - (CRConrad) - (5)
             This is also good for invasive updates. - (static)
             That's my kind of ugly - (drook) - (2)
                 It's also an interesting lesson in pragmatism. - (static) - (1)
                     I've done round trips mySQL -> vim -> PHP -> mySQL - (drook)
             Another batching method - (jay)

I suspect that this sword is forged.
60 ms