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

  • SEARCH
  • Home
  • 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 5997717
In Process

The Archive Base Latest Questions

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

Are there any best practices for returning large lists of orders to users? Let

  • 0

Are there any best practices for returning large lists of orders to users?

Let me try to outline the problem we are trying to solve. We have a list of customers that have 1-5,000+ orders associated to each. We pull these orders directly from the database and present them to the user is a paginated grid. The view we have is a very simple “select columns from orders” which worked fine when we were first starting but as we are growing, it’s causing performance/contention problems. Seems like there are a million and one ways to skin this cat (return only a page worth of data, only return the last 6 months of data, etc.) but like I said before just wondering if there are any resources out there that provide a little more hand holding on how to solve this problem.

We use SQL Server as our transaction database and select the data out in XML format. We then use a mixture of XSLT and Javascript to create our grid. We aren’t married to the presentation solution but are married to the database solution.

  • 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-23T00:18:14+00:00Added an answer on May 23, 2026 at 12:18 am

    My experience.

    1. Always set default values in the UI for the user that are reasonable. You don’t want them clicking “Retrieve” and getting everything.
    2. Set a limit to the number of records that can be returned.
    3. Only return from the database the records you are going to display.
    4. If forward/backward consistencency is important, store the entire results set from the query in a temp table and return just the page you need to display. When paging up/down retrieve the next set from the temp table.
    5. Make sure your indexs are covering your queries.
    6. Use different queries for different purposes. Think “Open Orders” vs “Closed Orders”. These might perfrom much better as different queries instead of one generic query.
    7. Set parameter defualts in the stored procedures. Protect your query from a UI that is not setting reasonable limits.

    I wish we did all these things.

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

Sidebar

Related Questions

Are there any best practices on returning different return types on overloaded methods? For
Are there any best practices (or even standards) to store addresses in a consistent
Are there any guidelines/best practices for deciding what type of data should be stored
Are there any known how-tos or best practices for web service REST API versioning?
Are there any best practices for writing a power-efficient background application in Symbian? Specifically,
There doesn't seem to be any tried and true set of best practices to
Are there any best practices for implementing a long-lived JavaScript app, i.e. a web
Are there any best practices or common solutions to adding support for static methods
I was wondering whether there are any best practices or if you have any
Are there any best practices on how to build a Kentico CMS Portal implementation

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.