UnQLite Users Forum

Is unqlite cross process safe in Windows ?

append delete turmansky

Curious if 2 or more different processes in windows can access the same DB in a Server / multiple client architecture.
One process has DB open for write
1-2 other processes have memory map and read only on on the same DB
Should this work ?

Reply RSS

Replies

append delete #1. chm

If journaling and mutexing are enabled (the default case), then two or more process/threads can access (ie. reading/writing) the same database simultaneously without corrupting the database.
Don't forget to compile UnQLite with mutli-threading support via UNQLITE_ENABLE_THREADS https://unqlite.org/c_api_const.html#compile_time

Reply

(Leave this as-is, it’s a trap!)

There is no need to “register”, just enter the same name + password of your choice every time.

Pro tip: Use markup to add links, quotes and more.

Your friendly neighbourhood moderators: chm_at_symisc, devel_at_symisc