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. General Programming
  3. .NET (Core and Framework)
  4. DataSet Clear() performance problem

DataSet Clear() performance problem

Scheduled Pinned Locked Moved .NET (Core and Framework)
architectureperformancehelpquestion
5 Posts 2 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.
  • D Offline
    D Offline
    Dan Bunea
    wrote on last edited by
    #1

    Hi, I am developing a Windows.Forms app. I am using a multi tier architecture with databinded strongly typed datasets . I am using a data access component called Facade where I have a method: public Sub LoadCompany(ByVal companyID as Integer, ByRef ds as CompaniesDataSet) ds.Clear() ...code to set the parameter in the select command DACompanies.Fill(ds) End Sub It seems that ds.Clear() takes more and more time to complete , from a few miliseconds at start to 4-5 seconds after 100 method invokes. Anyone has an answer to this? Thank you, Dan Bunea

    A 1 Reply Last reply
    0
    • D Dan Bunea

      Hi, I am developing a Windows.Forms app. I am using a multi tier architecture with databinded strongly typed datasets . I am using a data access component called Facade where I have a method: public Sub LoadCompany(ByVal companyID as Integer, ByRef ds as CompaniesDataSet) ds.Clear() ...code to set the parameter in the select command DACompanies.Fill(ds) End Sub It seems that ds.Clear() takes more and more time to complete , from a few miliseconds at start to 4-5 seconds after 100 method invokes. Anyone has an answer to this? Thank you, Dan Bunea

      A Offline
      A Offline
      apferreira
      wrote on last edited by
      #2

      I have seen other people complain about the same performance issue, namely here.[^]

      D 1 Reply Last reply
      0
      • A apferreira

        I have seen other people complain about the same performance issue, namely here.[^]

        D Offline
        D Offline
        Dan Bunea
        wrote on last edited by
        #3

        Yes, I saw that too. Unfortunately, I cannot use that simple solution, because I have very numerous bindings made to my DataSet. Any other solution? Thank you for your reply, Dan

        A 1 Reply Last reply
        0
        • D Dan Bunea

          Yes, I saw that too. Unfortunately, I cannot use that simple solution, because I have very numerous bindings made to my DataSet. Any other solution? Thank you for your reply, Dan

          A Offline
          A Offline
          apferreira
          wrote on last edited by
          #4

          Since this seems to be a .NET Framework issue, I do not see how you can alter this behaviour without changing the structure of your code. Also, I do not know if this issue only arises on .NET v1.0 or not. You should check that, because .NET v1.1 had many perfomance and bug related improvements

          D 1 Reply Last reply
          0
          • A apferreira

            Since this seems to be a .NET Framework issue, I do not see how you can alter this behaviour without changing the structure of your code. Also, I do not know if this issue only arises on .NET v1.0 or not. You should check that, because .NET v1.1 had many perfomance and bug related improvements

            D Offline
            D Offline
            Dan Bunea
            wrote on last edited by
            #5

            Hi, Thanks for your answer. I will test it on 1.1 tomorrow to see. Dan

            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