in reply to Re^2: arranging code that works with SQL databases in Perl
in thread arranging code that works with SQL databases in Perl
Putting everything into Oracle procedures is the approach the project I'm working on right now has taken.Can you comment on how fast ORacle stored procs are compared to SQL? I know that the query optimizer has no access to stored functions in MySQL and that things often run many times slower.
Also, how easy is it to dynamically generate SQL with stored procedures? What if you had a search form with an number of optional fields and various comparison operators? Could you build up the SQL piece-wise and then evaluate it after constructing it?
Finally, I find the stored procedure language quite a bit more wordy than Perl. It would seem that if the database knew the relations of your tables that it could generate common things you would want:
Now, the SP approach does have its advantages, but I'm just exploring some potential cons.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: arranging code that works with SQL databases in Perl
by mje (Curate) on Sep 02, 2009 at 17:04 UTC |