Open stan1334 opened 1 year ago
Sorry, I don't understand at all what the problem is, you really need to explain it better.
Also, please don't tag people without any good reason, this won't help with getting a response.
sqlite serialized mode, query and insert in different threads
select * from XXX,error_message:No sqlite statement created
I'm not sure SQLite is MT-safe, but I'm pretty sure that SOCI isn't, so if you're using the same object from different threads, it's not going to work.
No sqlite statement created
https://soci.sourceforge.net/doc/release/4.0/multithreading/ i know soci isnot support MT-safe, but sqlite serialized mode support MT,so i will change crud 2 sqlite native API,compare with soci in serial mode。
session isnot support MT SAFE。
much thread read write use soci::connection_pool pool soci::session sql(pool);
fixed
continue query, 100ms once
continue insert, single write 1000 ,by orm
OS:win10 X64
i see the sqlite doc
https://www.sqlite.org/c3ref/open.html
SQLITE_CONFIG_MULTITHREAD mode ,if session isnot on same thread will sql->prepare competition dblock
but i use serialized mode
soci sourcecode sqlite statement perper use sqlite3_prepare_v2,
soci\src\backends\sqlite3\statement.cpp
@mloskot @vadz
I hope to get your guidance, tku