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. SQLite

SQLite

Scheduled Pinned Locked Moved The Lounge
databasesqlite
16 Posts 9 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.
  • M milo xml

    So yesterday an article lauding the benefits of SQLite was sent out in the Daily Insider email. We have one application that uses it and we've had database corruption issues with it. I'm curious to everyone else's experience with it.

    pkfoxP Offline
    pkfoxP Offline
    pkfox
    wrote on last edited by
    #6

    As others have stated, always close the connection when you've finished with it, I've used it on a lot of applications and never had a problem. I love its portability.

    In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP

    J 1 Reply Last reply
    0
    • pkfoxP pkfox

      As others have stated, always close the connection when you've finished with it, I've used it on a lot of applications and never had a problem. I love its portability.

      In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP

      J Offline
      J Offline
      Jeremy Falcon
      wrote on last edited by
      #7

      Just out of curiosity... can only assume connections are cheap (as in fast) since it's local, correct? Interestingly enough, in the web world, we do the opposite at times. In fact, depending on the site, there may even be a connection pool.

      Jeremy Falcon

      pkfoxP 1 Reply Last reply
      0
      • M Mike Hankey

        I've used it on several projects and not had any problems with it. The only time I had a problem was when I first started using it I would open the DB and leave it open and had corruption problems.

        I don't think before I open my mouth, I like to be as surprised a everyone else. PartsBin an Electronics Part Organizer - Release Version 1.3.0 JaxCoder.com Latest Article: SimpleWizardUpdate

        D Offline
        D Offline
        dandy72
        wrote on last edited by
        #8

        Mike Hankey wrote:

        The only time I had a problem was when I first started using it I would open the DB and leave it open and had corruption problems.

        I wouldn't stop using whatever working database solution is currently being used in a project in favor of something that will corrupt itself by misusing its API. That sort of thing needs to be rock-solid before it can become a serious contender as an alternative to anything else.

        1 Reply Last reply
        0
        • M milo xml

          So yesterday an article lauding the benefits of SQLite was sent out in the Daily Insider email. We have one application that uses it and we've had database corruption issues with it. I'm curious to everyone else's experience with it.

          J Offline
          J Offline
          jschell
          wrote on last edited by
          #9

          Long ago, decades, database corruption happened for all databases. Lately it just doesn't happen. So this was interesting to me. Googling I find that SQLite itself documents the causes... How To Corrupt An SQLite Database File[^] That lists quite few possible problems basically broken down into the following 1. The application using it is wrong. 2. Manual mismanagement of the environment. 3. Problems with the environment

          M 1 Reply Last reply
          0
          • M milo xml

            So yesterday an article lauding the benefits of SQLite was sent out in the Daily Insider email. We have one application that uses it and we've had database corruption issues with it. I'm curious to everyone else's experience with it.

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

            It's a "file". It requires backups like any other file. It is "single user". How it performs, depends on the quality of the code using it. Which includes atomicity.

            "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

            1 Reply Last reply
            0
            • J Jeremy Falcon

              Just out of curiosity... can only assume connections are cheap (as in fast) since it's local, correct? Interestingly enough, in the web world, we do the opposite at times. In fact, depending on the site, there may even be a connection pool.

              Jeremy Falcon

              pkfoxP Offline
              pkfoxP Offline
              pkfox
              wrote on last edited by
              #11

              Yes I believe so Jeremy , the database is basically a very cleverly constructed flat file ( probably lots of linked lists in there ). Please correct me if I'm misdirected

              In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP

              J 1 Reply Last reply
              0
              • M milo xml

                So yesterday an article lauding the benefits of SQLite was sent out in the Daily Insider email. We have one application that uses it and we've had database corruption issues with it. I'm curious to everyone else's experience with it.

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #12

                I've used it without issues in the past

                1 Reply Last reply
                0
                • pkfoxP pkfox

                  Yes I believe so Jeremy , the database is basically a very cleverly constructed flat file ( probably lots of linked lists in there ). Please correct me if I'm misdirected

                  In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP

                  J Offline
                  J Offline
                  Jeremy Falcon
                  wrote on last edited by
                  #13

                  Dunno... never used it. I love the idea though, so just curious to know the deets.

                  Jeremy Falcon

                  R 1 Reply Last reply
                  0
                  • J jschell

                    Long ago, decades, database corruption happened for all databases. Lately it just doesn't happen. So this was interesting to me. Googling I find that SQLite itself documents the causes... How To Corrupt An SQLite Database File[^] That lists quite few possible problems basically broken down into the following 1. The application using it is wrong. 2. Manual mismanagement of the environment. 3. Problems with the environment

                    M Offline
                    M Offline
                    milo xml
                    wrote on last edited by
                    #14

                    We had Symantec for our corporate AV and there were times I wondered if that was causing issues too.

                    1 Reply Last reply
                    0
                    • M milo xml

                      So yesterday an article lauding the benefits of SQLite was sent out in the Daily Insider email. We have one application that uses it and we've had database corruption issues with it. I'm curious to everyone else's experience with it.

                      M Offline
                      M Offline
                      milo xml
                      wrote on last edited by
                      #15

                      Thanks for the feedback everyone!

                      1 Reply Last reply
                      0
                      • J Jeremy Falcon

                        Dunno... never used it. I love the idea though, so just curious to know the deets.

                        Jeremy Falcon

                        R Offline
                        R Offline
                        raddevus
                        wrote on last edited by
                        #16

                        I highly recommend the podcast with the original creator of SQLite The Untold Story of SQLite With Richard Hipp - CoRecursive Podcast[^] CoRecursive with Adam Gordon Bell is really great, but this particular one is one of the all-time best. You will get the details of how SQLite came to be and a lot of information of the challenges that Hipp had as he created it. Really great!!! I promise. :)

                        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