sqlite and processes

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf sqlite and processes

  • Creator
    Topic
  • #50436
    Rick Pritchett
    Participant

      I have one very important question.  I understand that sqlite uses locks when a process is writing to it.  Meaning that only one process can write to the databse but many can read.  What would happen if i had more than one thread in the same process try to write the the database at the same time?

    Viewing 2 reply threads
    • Author
      Replies
      • #66091
        Charlie Bursell
        Participant

          Simply setup a retry.  The lock is usually in the order of milliseconds

        • #66092

          Rickey, I *think* that the process only locks the db table on an insert/update type of event. So basically, multiple processes would have to just wait their turn which to our senses would be nearly instant.

          -- Max Drown (Infor)

        • #66093
          Rick Pritchett
          Participant

            I found the timeout command on the sqlite web site.

        Viewing 2 reply threads
        • The forum ‘Cloverleaf’ is closed to new topics and replies.