Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Alternative for multiple while loops to improve performance

by NetWallah (Canon)
on Dec 18, 2018 at 18:44 UTC ( #1227426=note: print w/replies, xml ) Need Help??


in reply to Alternative for multiple while loops to improve performance

SQL GROUP BY and HAVING clauses can help summarize and filter data significantly faster than running multiple queries in a while loop.

Also - LanX's suggestion of having appropriate INDEXes should improve performance.

SQL help would be off-topic for this forum, so I'm resisting requesting schema information, and a better problem description.

                As a computer, I find your faith in technology amusing.

  • Comment on Re: Alternative for multiple while loops to improve performance

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2019-07-19 01:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?