Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6133431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:13:39+00:00 2026-05-23T17:13:39+00:00

Simple question today: Is it better to return query data in a struct or

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T17:13:40+00:00Added an answer on May 23, 2026 at 5:13 pm

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is probably a really simple question however Google isn't my friend today. I
Simple question: How do I do this on one line: my $foo = $bar->{baz};
Simple question; what's better and why? out.resize( in.size() ); T1::iterator outit = out.begin(); for(
How goes it everybody? Very simple question today. If I give two separate Threads
A seemingly simple question...how can I return a list of days for any specified
This may be a simple question, but I am new to PowerShell and could
Here's my question for today. I'm building (for fun) a simple templating engine. The
I'm new to serialization, so this might be a simple question, but my google-fu
Following on from this question , I'm using a simple ViewModel class to test
This arose from a question earlier today on the subject of bignum libraries and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.