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. LINQ
  4. Linq to XML speed vs MySql speed

Linq to XML speed vs MySql speed

Scheduled Pinned Locked Moved LINQ
performancecsharpdatabasemysqlvisual-studio
4 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.
  • B Offline
    B Offline
    Budsy
    wrote on last edited by
    #1

    Has anyone benchmarked XML Linq speed compared to network'd MySql? I have a fairly big XML database here and was wondering if I might get better performance by loading it into MySql. It's the read access I'm most interested in at the moment. Yeah, I know I could mash up some test code, but I wondered what the scuttlebutt might be. Budsy

    A N D 3 Replies Last reply
    0
    • B Budsy

      Has anyone benchmarked XML Linq speed compared to network'd MySql? I have a fairly big XML database here and was wondering if I might get better performance by loading it into MySql. It's the read access I'm most interested in at the moment. Yeah, I know I could mash up some test code, but I wondered what the scuttlebutt might be. Budsy

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      I think MySql will be better if the size of the data is very long. Reading the entire xml file into memory and then apply LINQ will not be great compared to Database. In case of database you can select only the part you want. XML files are read totally into memory before searching. :)

      Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


      My Latest Articles-->** Simplify Code Using NDepend
      Basics of Bing Search API using .NET
      Microsoft Bing MAP using Javascript

      1 Reply Last reply
      0
      • B Budsy

        Has anyone benchmarked XML Linq speed compared to network'd MySql? I have a fairly big XML database here and was wondering if I might get better performance by loading it into MySql. It's the read access I'm most interested in at the moment. Yeah, I know I could mash up some test code, but I wondered what the scuttlebutt might be. Budsy

        N Offline
        N Offline
        N a v a n e e t h
        wrote on last edited by
        #3

        MySQL is RDBMS system and tuned for high performance. So you will get better performance than file system storage like XML. LINQ to XML is just an abstraction over the XML manipulation classes and it has to read the nodes sequentially. So the larger your file, slower your program will be.

        Best wishes, Navaneeth

        1 Reply Last reply
        0
        • B Budsy

          Has anyone benchmarked XML Linq speed compared to network'd MySql? I have a fairly big XML database here and was wondering if I might get better performance by loading it into MySql. It's the read access I'm most interested in at the moment. Yeah, I know I could mash up some test code, but I wondered what the scuttlebutt might be. Budsy

          D Offline
          D Offline
          Dan Mos
          wrote on last edited by
          #4

          " I have a fairly big XML database here and was wondering if I might get better performance by loading it into MySql." If I unterstood well, you want to "load" the xml file into MySQL witch means reading it and then loading it into the DB. If this is the case then it makes no sense. Just load it and LINQ it. If you want to give up the XML and use the DB taht's a totally different thing and it will be faster(a lot faster) especially for large amounts of data.

          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