3 ms·
From the FAQ: "7. Is UnQLite thread-safe Threads are evil.[1] Avoid them. UnQLite is threadsafe and full re-entrant. But in order to be thread-safe, UnQLite
by dfabulich 8y ago
From the FAQ:
"7. Is UnQLite thread-safe
Threads are evil.[1] Avoid them.
UnQLite is threadsafe and full re-entrant. But in order to be thread-safe, UnQLite must be compiled with the UNQLITE_ENABLE_THREADS compile time directive defined. If you are unsure if the UnQLite library you are linking against is compiled to be threadsafe you can call the unqlite_lib_is_threadsafe() interface to find out."
[1] http://www.eecs.berkeley.edu/Pubs/TechRpts/2006/EECS-2006-1.pdf http://www.eecs.berkeley.edu/Pubs/TechRpts/2006/EECS-2006-1.... "The Problem with Threads"
"Threads are evil" is not a useful remark to make in response to the question "is this library thread-safe"
- dominotw 8y agosqllite has the same warning in their FAQ's :D https://www.sqlite.org/faq.html#q6 https://www.sqlite.org/faq.html#q6
- blattimwind 8y agoSQLite can actually do grouping and sorting (iirc) in parallel, though it's disabled practically everywhere (Linux distros and other environments shipping SQLite seem to pick compile flags kinda arbitrarily, e.g. json1 and fts4/5 are fairly widespread on Linux, but not included in e.g. Python for Windows).