Simple question today: Is it better to return query data in a struct or return the query itself? This is in context of displaying the information in a readable format. (Typical data system.) I have done it by query till now, however I was thinking about making a async. sorting function (like an arrow on the top of a column). Would it better to put the query into a struct and then have sorting functions on the struct…or would it just be better to re-query the information? I’m thinking it would be better to do the struct, especially with large data…comments?
Is there a way to sort queries as they come?
Note: I don’t want to use CFGrid…for learning purposes and other reasons.
ColdFusion returns a dataset that you can reference directly, I see no reason to waste time dumping it into a struct.
If you don’t want to run the query a 2nd time, you can always run a query of queries and just resort the data that way.