Skip to content

Commit cb0d2fa

Browse files
committed
more caveats
1 parent 654986d commit cb0d2fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CAVEATS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@ Container technology was originally designed for stateless applications. Based o
1414

1515
In its default configuration, Litestack allows one writer at a time to write to the database file, while simultaneously allowing any number of readers to access the database. Generally SQLite is pretty fast in writes, but you should be aware that a long running write operation will prevent any other writers from proceeding, for example creating an index on a very large table will stop other writers until the index creation is finished. There is no concurrent index creation facility in SQLite, yet.
1616

17+
## Litestack does not release the GVL
1718

19+
This also applies to the Ruby SQLite3 gem, when it is performing a query, it will not allow any other threads in the Ruby process to resume until it returns. Care should be taken when writing low latency multi-threaded applications with Litestack, it is generally recommended to use fibers over threads in that case, since everything is serialized anyway it makes sense to avoid the ovreheads of mult-threaded environments
1820

0 commit comments

Comments
 (0)