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 462035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:02:04+00:00 2026-05-12T23:02:04+00:00

The problem: My company currently has a query that takes roughly 3 seconds to

  • 0

The problem: My company currently has a query that takes roughly 3 seconds to run, but the table creation to display the data takes roughly 30 seconds to loop through. Most of it is simply:

Dim MainTable as New Table
Dim TableR as New TableRow
Dim TableC as New TableCell
TableCell.Text = "Some data"
TableRow.Controls.Add(TableC)
MainTable.Controls.Add(TableR)

Now, the performance of this operation is about 30 seconds on roughly 550 records. I tried changing the process to using Strings instead:

Builder.Append("<tr><td>Something</td></tr>")

But there was no real improvement. My question is in regards to trying to improve the performance.

Would a repeater actually be faster?

  • 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-12T23:02:04+00:00Added an answer on May 12, 2026 at 11:02 pm

    Are you sure you know where the bottleneck is? You should measure the actual loop execution, the time it takes to fulfill the client request, and the time it takes the client to render the page.

    It doesn’t seem likely that it would take a StringBuilder loop thirty seconds for 550 iterations, unless you’re performing a different, unusually expensive operation within the loop.

    It’s more likely that the performance hit is due to:

    1) Excessive time sending the data from the server to the browser.

    2) The client taking a long time to actually render the page.

    Both of these typically have the same cause – the HTML you’re sending the browser is too big. (Which could also be cause by saving a ton of stuff in ViewState, which inflates the amount of data you send to the client.) Whatever the case, you need to take those measurements first to find out where the problem is.

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

Sidebar

Related Questions

My company has a problem: we suspect that the NACHA files we are receiving
My company currently has some serious problem. We've got an application as showcase on
My company is running into a problem with a web service that is written
I have a simple stupid question. Here's the problem, for years, my company has
Currently I am interning at a software company and one of my tasks has
I work for a company that develops a very large scale data based application.
I've just started my first development job for a reasonably sized company that has
The company where i am currently working has a special kind of authentication process.
My company has a very real problem with patch management on our web servers.
My company has a client that tracks prices for products from different companies at

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.