The site I am building will have around 100 installers each of which can be on one of three levels. The number of installers is likely to double in the next couple of months.
The list of installers need to be sorted primarily in the order of their installer level and then alphabetically but the site also allows for the installers to be filtered by region. For each installer level, the HTML output needs to be slightly different (change in colours and in some cases the information displayed).
Which is better from a performance basis?
Option 1:
Run a single getResources which needs a &tvFilters for the region, a &sortbyTV for the level and a &sortby the pagetitle and then use modifiers to in a single chunk to output the HTML for each installer level.
Option 2:
Run getResources three times (once per installer level) in the right order but will need a &tvFilters for the region but each would have their own HTML chunk which would eliminate the modifiers (but does not need to be sorted by installer level).
Right now all the installers are children to a single parent. With option 2, I could give them each there own parent which would reduce the amount of processing for the getResources but would complicate the admin a little bit.
So in essence, is it better to run one more complex SQL query and then modify the output or run 3 simpler SQL queries and have less modifiers?
I am using the latest Revo and the site is hosted on modxcloud.
Kind regards
James