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. Search is slow if large data in Gridview

Search is slow if large data in Gridview

Scheduled Pinned Locked Moved ASP.NET
9 Posts 4 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.
  • S Offline
    S Offline
    sumB
    wrote on last edited by
    #1

    If there is large volume of data in Gridview. and no paging in Gridview. If i click the search button to search the text then the search is slow.

    Mahendra

    S 1 Reply Last reply
    0
    • S sumB

      If there is large volume of data in Gridview. and no paging in Gridview. If i click the search button to search the text then the search is slow.

      Mahendra

      S Offline
      S Offline
      Sandeep Mewara
      wrote on last edited by
      #2

      sumB wrote:

      If there is large volume of data in Gridview. and no paging in Gridview

      If 'No Paging', then what else do you expect in case of large volume of data? When there is no pagination, whole data is wired and rendered on the webpage - it will be slow. Accept it or paginate it.

      Sandeep Mewara [My last article]: Server side Delimiters in ASP.NET[^]

      S L 2 Replies Last reply
      0
      • S Sandeep Mewara

        sumB wrote:

        If there is large volume of data in Gridview. and no paging in Gridview

        If 'No Paging', then what else do you expect in case of large volume of data? When there is no pagination, whole data is wired and rendered on the webpage - it will be slow. Accept it or paginate it.

        Sandeep Mewara [My last article]: Server side Delimiters in ASP.NET[^]

        S Offline
        S Offline
        sumB
        wrote on last edited by
        #3

        Thanks for the Reply, You are right. I have client requirement that, I can have only vertical scrollbar. I am not worried about the slow page listing. But i am concerned when i search a single record from database and bind a single row to the grid. then the page took a long time to accept the post request. I have a textbox for search text and dropdownbox for search criteria. so when i click on Search button, The page took a long time to accept the post request.

        Mahendra

        S M 2 Replies Last reply
        0
        • S sumB

          Thanks for the Reply, You are right. I have client requirement that, I can have only vertical scrollbar. I am not worried about the slow page listing. But i am concerned when i search a single record from database and bind a single row to the grid. then the page took a long time to accept the post request. I have a textbox for search text and dropdownbox for search criteria. so when i click on Search button, The page took a long time to accept the post request.

          Mahendra

          S Offline
          S Offline
          Sandeep Mewara
          wrote on last edited by
          #4

          You cannot do much here. Tune your query and DB to have quick response as much possible. UI wise, max you can do is show 'Processing...' or 'Loading...' text or icon until grid is not shown.

          Sandeep Mewara [My last article]: Server side Delimiters in ASP.NET[^]

          S 1 Reply Last reply
          0
          • S Sandeep Mewara

            You cannot do much here. Tune your query and DB to have quick response as much possible. UI wise, max you can do is show 'Processing...' or 'Loading...' text or icon until grid is not shown.

            Sandeep Mewara [My last article]: Server side Delimiters in ASP.NET[^]

            S Offline
            S Offline
            sumB
            wrote on last edited by
            #5

            Actually I have My gridview and search button inside UpdatePanel. so on search button click UpdatePanel took a long time.

            Mahendra

            S 1 Reply Last reply
            0
            • S sumB

              Actually I have My gridview and search button inside UpdatePanel. so on search button click UpdatePanel took a long time.

              Mahendra

              S Offline
              S Offline
              Sandeep Mewara
              wrote on last edited by
              #6

              Simply use Update Progress to show a progress to details update of Update panel. Present it to the client as maximum possible based on requirement.

              Sandeep Mewara [My last article]: Server side Delimiters in ASP.NET[^]

              S 1 Reply Last reply
              0
              • S Sandeep Mewara

                Simply use Update Progress to show a progress to details update of Update panel. Present it to the client as maximum possible based on requirement.

                Sandeep Mewara [My last article]: Server side Delimiters in ASP.NET[^]

                S Offline
                S Offline
                sumB
                wrote on last edited by
                #7

                updatepanel is not to show the progress. Instead the complete gridview and serarch button is inside updatepane.

                Mahendra

                1 Reply Last reply
                0
                • S sumB

                  Thanks for the Reply, You are right. I have client requirement that, I can have only vertical scrollbar. I am not worried about the slow page listing. But i am concerned when i search a single record from database and bind a single row to the grid. then the page took a long time to accept the post request. I have a textbox for search text and dropdownbox for search criteria. so when i click on Search button, The page took a long time to accept the post request.

                  Mahendra

                  M Offline
                  M Offline
                  meeram395
                  wrote on last edited by
                  #8

                  sumB wrote:

                  But i am concerned when i search a single record from database and bind a single row to the grid.

                  This is the query problem. Nothing to do with update panel,page or Gridview. Run the query using profiler so that you can come to know how much time it is taking to execute and where you can fix the problem.

                  Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

                  1 Reply Last reply
                  0
                  • S Sandeep Mewara

                    sumB wrote:

                    If there is large volume of data in Gridview. and no paging in Gridview

                    If 'No Paging', then what else do you expect in case of large volume of data? When there is no pagination, whole data is wired and rendered on the webpage - it will be slow. Accept it or paginate it.

                    Sandeep Mewara [My last article]: Server side Delimiters in ASP.NET[^]

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #9

                    you can use SP for that

                    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