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. Database & SysAdmin
  3. Database
  4. best local database for large tables? (C#, .net)

best local database for large tables? (C#, .net)

Scheduled Pinned Locked Moved Database
csharpdatabasesql-serversysadmintools
12 Posts 7 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.
  • J Jorgen Andersson

    How big is this file? Both in bytes and in rows.

    Wrong is evil and must be defeated. - Jeff Ello

    F Offline
    F Offline
    Frank R Haugen
    wrote on last edited by
    #3

    60MB and 300'000++ rows

    L J 2 Replies Last reply
    0
    • F Frank R Haugen

      60MB and 300'000++ rows

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

      How about SQL Compact Edition[^].

      S 1 Reply Last reply
      0
      • F Frank R Haugen

        60MB and 300'000++ rows

        J Offline
        J Offline
        Jorgen Andersson
        wrote on last edited by
        #5

        (Almost) Any database can handle that. Take a look at SQLite[^] for minimal installation and configuration. Or SQL Server Compact edition as already mentioned, if you want to be able to upgrade to a larger version later on. There are several inbetween versions of SQL-Server, there's an ok overview here[^]

        Wrong is evil and must be defeated. - Jeff Ello

        1 Reply Last reply
        0
        • F Frank R Haugen

          I just got handed a challange: Create a program to knead stellar data into something visual. I know this is redundant, as the tools already exist, but I'm between jobs and need something to do. So I have access to the data, which is a HUGE csv file. said CSV dataset keeps crashing, excel and access, so I need some local, "portable"/deployable and free database technology. Since I want some scalability, and decleared datatypes, using a CSV file isn't feasable. My first thought is a sql server, but they're not real user friendly if I want to distribute the software. Anyone have any suggestions? Please explain the benefits of the technology and not just name thibgs Thanks!

          G Offline
          G Offline
          GuyThiebaut
          wrote on last edited by
          #6

          A lot depends on what you are going to do with the data. If you are going to be reading, inserting, updating and deleting then a database is the way to go - SQLite is a good choice. If all you need to do is read a large amount of data into an application and never need to update this data then you could consider Serialising your classes(or collections of classes). This is what I have done for a calorie counting application and a visual screening application that I wrote(even if you are applying updates serialisation is still worth considering). The nice bit about serialisation into XML is that you can look at your data with something like Notepad++ and make changes manually where necessary.

          “That which can be asserted without evidence, can be dismissed without evidence.”

          ― Christopher Hitchens

          F 1 Reply Last reply
          0
          • L Lost User

            How about SQL Compact Edition[^].

            S Offline
            S Offline
            Sascha Lefevre
            wrote on last edited by
            #7

            Apparently it's not the case (or not yet?) but I was under the impression that SQL Compact was deprecated. Did MS change their mind or am I confusing it with something "similar"?

            If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

            L 1 Reply Last reply
            0
            • S Sascha Lefevre

              Apparently it's not the case (or not yet?) but I was under the impression that SQL Compact was deprecated. Did MS change their mind or am I confusing it with something "similar"?

              If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

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

              I don't know, I have not used it recently.

              1 Reply Last reply
              0
              • F Frank R Haugen

                I just got handed a challange: Create a program to knead stellar data into something visual. I know this is redundant, as the tools already exist, but I'm between jobs and need something to do. So I have access to the data, which is a HUGE csv file. said CSV dataset keeps crashing, excel and access, so I need some local, "portable"/deployable and free database technology. Since I want some scalability, and decleared datatypes, using a CSV file isn't feasable. My first thought is a sql server, but they're not real user friendly if I want to distribute the software. Anyone have any suggestions? Please explain the benefits of the technology and not just name thibgs Thanks!

                P Offline
                P Offline
                peterkmx
                wrote on last edited by
                #9

                I suggest System.Data.SQLite: Downloads Page[^]. It is up to date, easy to use from c#, there is no service needed and it has very fast inserts and retrievals into/from tables. Last August I tested it by inserting up to 100 million of simple unique records on a Win 7 Pro with 4 GB of RAM and I could retrieve data in milliseconds, even from a table of 100 million... which I found quite impressive. When inserting I used parametrized queries. For fast retrieval an index needs to be created on a table column using SQL. Of course it depends on how complex is your data. I hope this helps...

                1 Reply Last reply
                0
                • F Frank R Haugen

                  I just got handed a challange: Create a program to knead stellar data into something visual. I know this is redundant, as the tools already exist, but I'm between jobs and need something to do. So I have access to the data, which is a HUGE csv file. said CSV dataset keeps crashing, excel and access, so I need some local, "portable"/deployable and free database technology. Since I want some scalability, and decleared datatypes, using a CSV file isn't feasable. My first thought is a sql server, but they're not real user friendly if I want to distribute the software. Anyone have any suggestions? Please explain the benefits of the technology and not just name thibgs Thanks!

                  B Offline
                  B Offline
                  Brisingr Aerowing
                  wrote on last edited by
                  #10

                  SQL Server has a localdb version which seems to be the replacement for the compact edition.

                  What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

                  1 Reply Last reply
                  0
                  • G GuyThiebaut

                    A lot depends on what you are going to do with the data. If you are going to be reading, inserting, updating and deleting then a database is the way to go - SQLite is a good choice. If all you need to do is read a large amount of data into an application and never need to update this data then you could consider Serialising your classes(or collections of classes). This is what I have done for a calorie counting application and a visual screening application that I wrote(even if you are applying updates serialisation is still worth considering). The nice bit about serialisation into XML is that you can look at your data with something like Notepad++ and make changes manually where necessary.

                    “That which can be asserted without evidence, can be dismissed without evidence.”

                    ― Christopher Hitchens

                    F Offline
                    F Offline
                    Frank R Haugen
                    wrote on last edited by
                    #11

                    Ilove XML, but 300'000 rows, in a single file, times out the application

                    G 1 Reply Last reply
                    0
                    • F Frank R Haugen

                      Ilove XML, but 300'000 rows, in a single file, times out the application

                      G Offline
                      G Offline
                      GuyThiebaut
                      wrote on last edited by
                      #12

                      Sure :) 300,000 rows is probably going to stretch things a bit.

                      “That which can be asserted without evidence, can be dismissed without evidence.”

                      ― Christopher Hitchens

                      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