Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. It takes too long to execute a query in aspx page

It takes too long to execute a query in aspx page

Scheduled Pinned Locked Moved ASP.NET
databasesql-serversysadminhelpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Abdul Rahman Hamidy
    wrote on last edited by
    #1

    Dear All, I am having an issue with an aspx where it takes too much (more than 1 min) to execute a page as it only takes 2 second in sql server to execute the same query where i am calling from aspx page. I didn't understand why the aspx page takes too much time?

    Abdul Rahaman Hamidy Database Developer Kabul, Afghanistan

    J 1 Reply Last reply
    0
    • A Abdul Rahman Hamidy

      Dear All, I am having an issue with an aspx where it takes too much (more than 1 min) to execute a page as it only takes 2 second in sql server to execute the same query where i am calling from aspx page. I didn't understand why the aspx page takes too much time?

      Abdul Rahaman Hamidy Database Developer Kabul, Afghanistan

      J Offline
      J Offline
      jkirkerx
      wrote on last edited by
      #2

      I've heard that before. In most case, one binds a table to a control, and that table has over 10K records. Of course in SQL, it returns in 2 secs, but the overhead on the server, takes, several minutes to generate the HTML code, and the download time as well.

      D 1 Reply Last reply
      0
      • J jkirkerx

        I've heard that before. In most case, one binds a table to a control, and that table has over 10K records. Of course in SQL, it returns in 2 secs, but the overhead on the server, takes, several minutes to generate the HTML code, and the download time as well.

        D Offline
        D Offline
        David Mujica
        wrote on last edited by
        #3

        Yep, I agree with jKirkerx. You haven't given enough information about the nature of your aspx page. What controls are on it ? What is the action that is being performed by the SQL engine. 2 seconds of execution time on a SQL server could effect tens of thousands of rows of data. My hunch is that you are dealing with lots of data and maybe you should reconsider your page design. Give some more information and the folks here will give you suggestions for improvement. :thumbsup:

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups