should i loop twice or once???
Posted: Tue Oct 07, 2003 8:02 pm
ok i have this simple question, and i don't wanna do bechnmarking because it's obvious what's slower, but i wanna know which one is better, for high traffic i might say:
1.for earch letter of the alphabet(A-Z), query the database to return artist names
or
2.query all the artists and sort them in category trees using array functions, and if that's the best way, how?
example:
A
-Abba Teens
B
-Britney Spears
C
-Christina Aguilera
1.for earch letter of the alphabet(A-Z), query the database to return artist names
or
2.query all the artists and sort them in category trees using array functions, and if that's the best way, how?
example:
A
-Abba Teens
B
-Britney Spears
C
-Christina Aguilera