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. Other Discussions
  3. The Insider News
  4. Why your app’s database stinks— and your ORM too

Why your app’s database stinks— and your ORM too

Scheduled Pinned Locked Moved The Insider News
databasesqlitecom
8 Posts 8 Posters 1 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.
  • K Offline
    K Offline
    Kent Sharkey
    wrote on last edited by
    #1

    SD Times[^]:

    At the dawn of the millennium, somewhere in the depths of a company contracted by the United States Navy, D. Richard Hipp designed SQLite so that you could finally stick a database inside an application.

    Ignore the fact he's trying to sell you a competitive product. I'm sure that's just a coincidence.

    L P J P 4 Replies Last reply
    0
    • K Kent Sharkey

      SD Times[^]:

      At the dawn of the millennium, somewhere in the depths of a company contracted by the United States Navy, D. Richard Hipp designed SQLite so that you could finally stick a database inside an application.

      Ignore the fact he's trying to sell you a competitive product. I'm sure that's just a coincidence.

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

      Simple; learn SQL.

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

      1 Reply Last reply
      0
      • K Kent Sharkey

        SD Times[^]:

        At the dawn of the millennium, somewhere in the depths of a company contracted by the United States Navy, D. Richard Hipp designed SQLite so that you could finally stick a database inside an application.

        Ignore the fact he's trying to sell you a competitive product. I'm sure that's just a coincidence.

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #3

        ORMs are members of that class of "solutions" that are designed to keep newbies from learning to do things the right way.

        W F 2 Replies Last reply
        0
        • K Kent Sharkey

          SD Times[^]:

          At the dawn of the millennium, somewhere in the depths of a company contracted by the United States Navy, D. Richard Hipp designed SQLite so that you could finally stick a database inside an application.

          Ignore the fact he's trying to sell you a competitive product. I'm sure that's just a coincidence.

          J Offline
          J Offline
          Joe Woodbury
          wrote on last edited by
          #4

          Glad to see Realm works perfectly with C++... oh, wait.

          1 Reply Last reply
          0
          • K Kent Sharkey

            SD Times[^]:

            At the dawn of the millennium, somewhere in the depths of a company contracted by the United States Navy, D. Richard Hipp designed SQLite so that you could finally stick a database inside an application.

            Ignore the fact he's trying to sell you a competitive product. I'm sure that's just a coincidence.

            P Offline
            P Offline
            Pete OHanlon
            wrote on last edited by
            #5

            Hmmm, I have to say that article was poor. It stated that there was a problem, detailed what the author thought the problem was and.... well, that was it. If he'd taken it just that one step further, he could have talked people through how to solve the problem of poor performance; for instance, he could have made it explicit that you shouldn't do multiple updates when they should be set based operations.

            This space for rent

            P 1 Reply Last reply
            0
            • P PIEBALDconsult

              ORMs are members of that class of "solutions" that are designed to keep newbies from learning to do things the right way.

              W Offline
              W Offline
              wout de zeeuw
              wrote on last edited by
              #6

              I have no dislike for writing SQL and stored procedures at all. SQL Management Studio has auto completion and it's pretty comfy. And if things don't work as you expect you can debug it inside SQL management studio too, good luck doing that with your ORM. Performance is great too. For basic CRUD access I've written my own stored procedures that generate CRUD stored procedures (in SQL you can query table and column metadata and generate output based on that), so for 90% of the things I need I can generate it, and the other 10% I can generate it and tweak to my needs.

              Wout

              1 Reply Last reply
              0
              • P PIEBALDconsult

                ORMs are members of that class of "solutions" that are designed to keep newbies from learning to do things the right way.

                F Offline
                F Offline
                Foothill
                wrote on last edited by
                #7

                That's okay, when I first saw "ORM" in the title, this came to mind: Operational Risk Management[^],

                if (Object.DividedByZero == true) { Universe.Implode(); } Meus ratio ex fortis machina. Simplicitatis de formae ac munus. -Foothill, 2016

                1 Reply Last reply
                0
                • P Pete OHanlon

                  Hmmm, I have to say that article was poor. It stated that there was a problem, detailed what the author thought the problem was and.... well, that was it. If he'd taken it just that one step further, he could have talked people through how to solve the problem of poor performance; for instance, he could have made it explicit that you shouldn't do multiple updates when they should be set based operations.

                  This space for rent

                  P Offline
                  P Offline
                  Paulo Zemek
                  wrote on last edited by
                  #8

                  I completely agree with you. In fact, there are ORMs that allow set based operations (the WHERE part of a LINQ select can very well be used in an update).

                  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