Perl or SQL
I have several quests that are using some SQL stored procedures that I wrote, and that got me to thinking about where the better place is to put code. There is logic that I can just as easily put on the Perl side as the SQL, or vice versa, so which would be better? Which requires less processing overhead Perl or SQL? Anyone know?
|
SQL is going to perform sorting logic faster than pretty much anything else, provided your query isn't doing anything silly and the tables involved are properly keyed and indexed.
If you're really worried about overhead, you might consider making a c++ function with a perl wrapper. The perl interface is great, but if you need to do any heavy lifting, it should probably be done elsewhere. |
All times are GMT -4. The time now is 07:25 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.