LaundroMat
Programmer
Hi,
I'm using MySQL with PHP, and I was wondering what would be the better way of doing things performance-wise.
Sometimes I need data (some of it grouped, such as SUMs) from 5 columns in one time. Would it be better to execute one complex SQL query (with a lot of JOINs, SUMs and what not) or would performance be less hampered by using single statements?
I'm using MySQL with PHP, and I was wondering what would be the better way of doing things performance-wise.
Sometimes I need data (some of it grouped, such as SUMs) from 5 columns in one time. Would it be better to execute one complex SQL query (with a lot of JOINs, SUMs and what not) or would performance be less hampered by using single statements?