Combining getRecords Calls?

2 posts by 2 authors in: Forums > CMS Builder
Last Post: October 3, 2013   (RSS)

Hi Perch,

If you wanted to you could get all of the records using one getRecord call, and then filter the results using foreach loops,  if statements and array groupBy. But I don't think it would speed up page loads significantly, and it would make the code a lot more difficult to read. I would just leave the code as you currently have it as it's nice and clear, and let MySQL do the complicated sorting stuff. :-) 

Cheers!

Greg

Greg Thomas







PHP Programmer - interactivetools.com