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 couple of points
if you're running MySQL, you need to know a [link|http://sql-info.de/mysql/gotchas.html|few things]. Note, that this isn't a complete list.

Presumably you're developing programs A & B at the some time on the dev system. So moving 1 to staging/test should be coordinated with the other, likewise from staging to production/live. Stable together on staging should mean stable on live. But, as they say "there's no test like production." So you're right to be concerned, but I think the approach can be pretty tightly targetted: you know what the database changes are--you know what can be undone. Some database changes can wait until after you're satisfied with the application change. (Things like dropping tables/views or columns can wait until you're certain you're not going back. Adding tables and columns can be done before the production roll...)

how 'bout mysqldump instead of create table ..._bak.... ?
Have fun,
Carl Forde
New A mysqldump can be slower than a select * into ...
In fact, a mysqldump is not a terribly fast way to copy or backup the database at all. The quickest way is to grab the global read lock (FLUSH TABLES WITH READ LOCK), copy the files in the OS from one disk to another and release the global lock (UNLOCK TABLES). Actually, that's the second quickest way. The quickest way is to do that on a slave.

Wade.

Is it enough to love
Is it enough to breathe
Somebody rip my heart out
And leave me here to bleed
 
Is it enough to die
Somebody save my life
I'd rather be Anything but Ordinary
Please

-- "Anything but Ordinary" by Avril Lavigne.

New Not on MySQL any more
Was using that as an example. But as to your other point:
Presumably you're developing programs A & B at the some time on the dev system. So moving 1 to staging/test should be coordinated with the other, likewise from staging to production/live. Stable together on staging should mean stable on live.
How about when you have seven different programmers developing 12 different apps that all point to the same DB server? It's just not practical to say you can't start testing on any of them until yu're able to start testing on all of them.
===

Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats].
[link|http://DocHope.com|http://DocHope.com]
New Then you need to slow down. WTF is that place - Fever City?!
New How many developers in your departement?
And what's the largest you've worked with? You're talking like you've never worked someplace with multiple programmers. Or maybe you're used to places so large that you have multiple programmers on each active project.

In my experience it's common to have one programmer working on an ordering system, one working on an accounting system, one working on reporting, one working on customer service, etc etc etc. All of these at some point touch the same customer and order tables, but none of the projects intersect with each other enough that the programmers need to care about each other.

Do you really work someplace with multiple programmers, and they're all working on the same app?
===

Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats].
[link|http://DocHope.com|http://DocHope.com]
     Any DBAs want to do some consulting? - (drewk) - (14)
         Sorry, I don't get it. Aren't (eg) tabledefs also just code? -NT - (CRConrad) - (11)
             Rollback is different, some actions are non-reversible - (drewk) - (10)
                 Ah. OK, I see what you mean. But... - (CRConrad) - (9)
                     Maybe you're used to different hardware than I am - (drewk) - (8)
                         couple of points - (cforde) - (4)
                             A mysqldump can be slower than a select * into ... - (static)
                             Not on MySQL any more - (drewk) - (2)
                                 Then you need to slow down. WTF is that place - Fever City?! -NT - (CRConrad) - (1)
                                     How many developers in your departement? - (drewk)
                         You should try an approach that works well for Peoplesoft - (folkert) - (2)
                             gotta write that one down, thanx -NT - (boxley)
                             Already do that - (drewk)
         email me - (broomberg) - (1)
             Still trying to find all that out - (drewk)

Pilkunnussija.
44 ms