| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Stupid Database Tricks
David Cressey wrote:
> "Cimode" <cimode_at_hotmail.com> wrote in message > news:1179840361.196065.235210_at_n15g2000prd.googlegroups.com... >
> > I prefer the title "Stupid Database Tricks". This title is derived from > David Letterman's "Stupid Pet Tricks". I hope you can see behind the > levity, and catch some real serious points here. Sometimes, humor is the > only sane response to absurdity. > > A few sample stupid database tricks: > > We back up our database every day. But, come to think of it, we have never > actually tested our backups. > > We found that views run awfully slow, so we forbid views at our shop. > > We found that indexes slow things down, so we don't allow more than one > index on each table. > > We found that indexes speed things up, so we have an index on every column > of every table! > > Data normalization? We don't have time for all that theoretical crap! > We're working under a deadline here! Talk to us after the version 1 rollout > is complete. > > Using our model, you can accomodate any new data that comes along with zero > changes to the metadata. That way, the DBA can't act as an obstacle to > progress! > > Our problem is a really simple one, so we store everything in one giant > table! > > You get the idea...
Every table will have a numeric id column, and this column will be the primary key.
For performance, we enforce integrity in the application.
Duplicate removal is too expensive so we allow duplicates.
We back up our database every day -- reusing the same media every day.
We don't make backups because we our database handles recovery.
Joins are too expensive so we denormalized our data where we no longer need to do any joins.
Integrity enforcement is too expensive so we don't do any. Received on Tue May 22 2007 - 15:48:09 CDT
![]() |
![]() |