Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Re: Re: How to structure applications using a RDBMS

by rdfield (Priest)
on Jul 19, 2002 at 14:37 UTC ( #183249=note: print w/replies, xml ) Need Help??

in reply to Re: Re: How to structure applications using a RDBMS
in thread How to structure applications using a RDBMS

My point was specifically about each RDBMS' peculiarity when it comes to writing SQL for performance rather than functionality. I would expect a good programmer to have a broad knowledge of what functionality is available for each RDBMS they use on a regular basis, but I certainly wouldn't expect such a programmer to go to the lengths of understanding how each RDBMS optimises their SQL. For instance, I don't know DB2 at all, but I have it on very good authority that its optimizer changes with every release - keeping track of such things is surely not a job for a programmer. For another instance, a few years ago I was was called in to a large company to fix the problems that they were having with their Telephone Banking system - their daily batch update was taking 27 hours! (do the maths :) A couple of small tweaks later (changed an 'or' to a 'union all' and modified the column ordering in a couple of indexes) and the batch load time was reduced to 42 minutes. The point of that little story was that the original SQL was written by Oracle Corp consultants charging GBP150p.h. - programmers who should know how the Oracle RDBMS works :)


  • Comment on Re: Re: Re: How to structure applications using a RDBMS

Replies are listed 'Best First'.
Re: Re: Re: Re: How to structure applications using a RDBMS
by adamsj (Hermit) on Jul 19, 2002 at 19:05 UTC
    I don't disagree a bit with what you've said.

    On the other hand, I think a developer shouldn't have to be told more than twice that:

    SELECT DISTINCT(item) FROM a.table
    can eat up a couple hundred gig of spool without blinking, but that
    SELECT item FROM a.table GROUP BY item
    goes by in the blink of an eye. You'd think that wouldn't be a major paradigm shift for them--but it is (okay, in one case I've been dwelling on lately). And it'd be even nicer to be heard the first time.

    (This is an oversimplified example--the point being DISTINCT versus GROUP BY.)


    They laughed at Joan of Arc, but she went right ahead and built it. --Gracie Allen

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://183249]
[Corion]: Hehe - $work is a place where we have lots of (money) accounts, and lots of journals where every transaction is recorded. But our HR system where the accounts of hours worked and vacation days taken are stored, there is no real account of who changed ...
[Corion]: ... that balance, and when. And it seems to me that they somehow really messed up the database since the start of the year and have been frantically adding and subtracting numbers from the totals, but without trace ;)

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2018-01-23 16:38 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (249 votes). Check out past polls.