in reply to Query takes 895ms in TOAD but 42s in DBI
I don't think you are comparing like with like here.
Outputting data to the terminal is never a good test of speed. Try it without the print to take this out of the equation.
Also, why bother doing all those tests of NULL to change the returned value to Unknown when you can use coalesce in your SQL select and let oracle do it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Query takes 895ms in TOAD but 42s in DBI
by joec_ (Scribe) on Dec 02, 2008 at 16:31 UTC | |
by dragonchild (Archbishop) on Dec 02, 2008 at 22:38 UTC |