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. The Lounge
  3. Now I feel blue!

Now I feel blue!

Scheduled Pinned Locked Moved The Lounge
databasepostgresqlcomperformancehelp
14 Posts 6 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.
  • C CodeWraith

    FS15044 Insignia Blue[^], to be exact. I just knocked over my blue paint when painting the insignia on the belly side of the Huey. Looks like my pants now are insignia blue as well and I smell like a distillery because I thinned the paint with alcohol. Time to do something different. How about some coding? Normally I would use my good old Postgres database to hold the data, but this time I must do it in memory. The problem is that a full blown database would be overkill, but messing around with two dozen separate collections and enforcing relationships is too much fuzz. Does anybody know a nice library that can be used for that?

    I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

    D Offline
    D Offline
    Daniel Pfeffer
    wrote on last edited by
    #5

    What's wrong with [SQLite](https://www.sqlite.org/index.html)? IIRC, It also supports in-memory databases.

    Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

    R 1 Reply Last reply
    0
    • C CodeWraith

      Ahh, I see:

      Quote:

      RickZeeland contributor for a year

      At first glance it is just what i need.

      I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

      R Offline
      R Offline
      RickZeeland
      wrote on last edited by
      #6

      Now you are having a Slanted opinion :-\

      1 Reply Last reply
      0
      • D Daniel Pfeffer

        What's wrong with [SQLite](https://www.sqlite.org/index.html)? IIRC, It also supports in-memory databases.

        Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

        R Offline
        R Offline
        RickZeeland
        wrote on last edited by
        #7

        Just read this: In Search of Fast Local Storage – {coding}Sight[^] and you might think otherwise ...

        D 1 Reply Last reply
        0
        • C CodeWraith

          FS15044 Insignia Blue[^], to be exact. I just knocked over my blue paint when painting the insignia on the belly side of the Huey. Looks like my pants now are insignia blue as well and I smell like a distillery because I thinned the paint with alcohol. Time to do something different. How about some coding? Normally I would use my good old Postgres database to hold the data, but this time I must do it in memory. The problem is that a full blown database would be overkill, but messing around with two dozen separate collections and enforcing relationships is too much fuzz. Does anybody know a nice library that can be used for that?

          I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

          Sander RosselS Offline
          Sander RosselS Offline
          Sander Rossel
          wrote on last edited by
          #8

          Is this about you?[^] :D

          Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

          C 1 Reply Last reply
          0
          • R RickZeeland

            Just read this: In Search of Fast Local Storage – {coding}Sight[^] and you might think otherwise ...

            D Offline
            D Offline
            Daniel Pfeffer
            wrote on last edited by
            #9

            1. The OP described a reasonably complex database, that requires maintenance and enforcement of relationships. This is just the kind of use case at which relational databases excel. 2. Speed, while important, is not the primary criterion for a database engine. Data and relationship integrity is. 3. When choosing between a mature database engine that is used in billions of devices and a relatively unknown engine, the mature product will usually win. Very few people can afford to bet their product (or their reputation) on unknown quantities. This does not mean that I would never try unknown products. It does mean that I will use them only in non-critical (i.e. non-production) environments until I am sure that (a) they can do what they claim to do and (b) are better in some significant way than the mature product.

            Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

            R 1 Reply Last reply
            0
            • D Daniel Pfeffer

              1. The OP described a reasonably complex database, that requires maintenance and enforcement of relationships. This is just the kind of use case at which relational databases excel. 2. Speed, while important, is not the primary criterion for a database engine. Data and relationship integrity is. 3. When choosing between a mature database engine that is used in billions of devices and a relatively unknown engine, the mature product will usually win. Very few people can afford to bet their product (or their reputation) on unknown quantities. This does not mean that I would never try unknown products. It does mean that I will use them only in non-critical (i.e. non-production) environments until I am sure that (a) they can do what they claim to do and (b) are better in some significant way than the mature product.

              Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

              R Offline
              R Offline
              RickZeeland
              wrote on last edited by
              #10

              That are some good points, SQLite is of course on the market for quite a long time and LiteDB undoubtedly still has some bugs as it is a relatively young product. So we will see what CodeWraith thinks of it (if he decides to use it). Exciting times! :-\

              C 1 Reply Last reply
              0
              • R RickZeeland

                That are some good points, SQLite is of course on the market for quite a long time and LiteDB undoubtedly still has some bugs as it is a relatively young product. So we will see what CodeWraith thinks of it (if he decides to use it). Exciting times! :-\

                C Offline
                C Offline
                CodeWraith
                wrote on last edited by
                #11

                I will try both of them. At the moment I can't yet sayhow much of a database I'm going to need. While I will have a few tables, I doubt that many of them will contain more than 1000 rows. Enforcing referential integrity is important, because I have come to rely on it as a safeguard against sloppy application logic. And my queries? They will not be very complex, as far as I can say at this early stage. Let's just wait and see where this leads to. Anyway, thanks for both suggestions.

                I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

                1 Reply Last reply
                0
                • Sander RosselS Sander Rossel

                  Is this about you?[^] :D

                  Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

                  C Offline
                  C Offline
                  CodeWraith
                  wrote on last edited by
                  #12

                  I would prefer this one[^], but that would be a sinfully expensive toy[^].

                  I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

                  1 Reply Last reply
                  0
                  • C CodeWraith

                    FS15044 Insignia Blue[^], to be exact. I just knocked over my blue paint when painting the insignia on the belly side of the Huey. Looks like my pants now are insignia blue as well and I smell like a distillery because I thinned the paint with alcohol. Time to do something different. How about some coding? Normally I would use my good old Postgres database to hold the data, but this time I must do it in memory. The problem is that a full blown database would be overkill, but messing around with two dozen separate collections and enforcing relationships is too much fuzz. Does anybody know a nice library that can be used for that?

                    I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

                    K Offline
                    K Offline
                    kmoorevs
                    wrote on last edited by
                    #13

                    I've used sql ce for a couple of personal apps...works fine, but has limitations. (no views and windows only being big ones) If it's windoze only, there's always ms access. (the older free version)

                    "Go forth into the source" - Neal Morse

                    C 1 Reply Last reply
                    0
                    • K kmoorevs

                      I've used sql ce for a couple of personal apps...works fine, but has limitations. (no views and windows only being big ones) If it's windoze only, there's always ms access. (the older free version)

                      "Go forth into the source" - Neal Morse

                      C Offline
                      C Offline
                      CodeWraith
                      wrote on last edited by
                      #14

                      Thanks, but that does not help very much. I think that both will not work very well in a DirectX graphics context. :-) I have a homemade UI that needs some more development and I need something that provides the model part of the MVP pattern it is built around.

                      I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

                      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