-1
I have a bank with all the products of my store, I want to list the products by categories but I do not know what is the most efficient way to do this, because it is a big bank. It would be better if I fetched all the products at once and with foreach
and if
make the groupings of items? Or make more than one query and in each search use WHERE categoria = 'MinhaCategora'
?
Or would you have some other option to do that grouping?