Skip to content

Working with simultaneous actions #68

Open
@Zhu-jiatong

Description

@Zhu-jiatong

I am using this library with a webserver for storing and accessing user data.
In most cases, there will be no issues.

However, when there is a write operation to the database while a read is being performed on it, what will happen?
What about 2 writes at the same time?

I saw that on the sqlite documentation, different threadsafe options are offered both during compile time and runtime.
So, according to this document, I may use Multi-thread mode to allow a database to be used simultaneously by multiple connections.
Alternatively, I may also use Serialized mode to force all operations into sequential order.

I would like to know if the above informatin is valid, and that whether I can use the library safely in such cases. Thank you.

*If any further clarifications are required, please let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions