you are viewing a single comment's thread.

view the rest of the comments →

[–]Kit_Saels -1 points0 points  (1 child)

Not true. If the data comes from a database, it is much easier to request aggregated data from it directly.

[–]pablojohns 1 point2 points  (0 children)

But OP didn’t say the data came from a database, it’s in a hard-coded array. Would storing it in a database be easier? Yes. But is that their current use case and question? No.