Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Bitten by the worst case (or why it pays to know whats inside the black box)

by demerphq (Chancellor)
on Jun 26, 2004 at 14:53 UTC ( [id://369836]=note: print w/replies, xml ) Need Help??


in reply to Re: Bitten by the worst case (or why it pays to know whats inside the black box)
in thread Bitten by the worst case (or why it pays to know whats inside the black box)

you can get pathological queries that you think should work just fine, but that due to some optimizer decision actually go off the deep end...

Agreed. I think with DB's in particular a sound understanding of how they do their business is very useful. Both in DB design and in writing efficient queries. In fact the number of times that I've heard people say "I dont need to know how DB's work, its a black box" was a motivation for writing this node.

Also this type of understanding has on at least one occasion earned me signifigant brownie points. The Sybase DBA I work with the most, (who is now my boss) once wondered aloud why when dropping a clustered index and rebuilding it didnt always result in the same record ordering. The reason of course was that internally Sybase was using an unstable sort and two records who were key equivelent might be reordered. The fact I was able to explain this to the man that has taught me practically all of the Sybase stuff I know earned me a lot of respect. So sometimes the payoff isnt even in the code domain, but in real life.


---
demerphq

    First they ignore you, then they laugh at you, then they fight you, then you win.
    -- Gandhi


  • Comment on Re^2: Bitten by the worst case (or why it pays to know whats inside the black box)

Replies are listed 'Best First'.
Re^3: Bitten by the worst case (or why it pays to know whats inside the black box)
by mpeppler (Vicar) on Jun 27, 2004 at 06:40 UTC
    Agreed. I think with DB's in particular a sound understanding of how they do their business is very useful. Both in DB design and in writing efficient queries. In fact the number of times that I've heard people say "I dont need to know how DB's work, its a black box" was a motivation for writing this node.
    As is my current situation of helping people who write code that uses Apples WebObjects java framework. WO presents objects to the programmer that represents database rows - but the programmer has no control over how these rows are fetched. In general it works OK, but when it doesn't it's a major PITA to try to find a way to make it work at a reasonable speed.

    Michael

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://369836]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-23 22:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found