Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

SQL query times


  • Please log in to reply

#1
Driest

Driest

    New Member

  • Member
  • Pip
  • 7 posts
I have an VB.NET web app which performs a fairly complicated SQL query. It seems in the morning, the 1st time the page is loaded (and query executed) it takes up to 10-15 seconds to complete loading. Sometimes it even times out. However anytime after that, the page loads up (even from another computer) in about 4-5 seconds. Can someone explain the reason for this and how I might fix the load times in the morning?

Thanks
  • 0

Advertisements


#2
bdlt

bdlt

    Member

  • Member
  • PipPipPip
  • 876 posts
Hi Driest,

the load on the server is the most likely culprit for the slower page loading - more users in the morning than later in the day.

are you able to modify the vb.net code?
the query is run from the index page on startup, right?

if so to both , then you might consider creating 2 test pages - one with the query and the other with the remaining index page. run each page during a peak period and time each. if the query is using the most time, then there's not you can do unless you simplify the query(which you most likely don't want to do). if the rest of the index page is the slow component, the try removing images or other slowly loading components.

bdlt
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP