3 ms·
According to the README all access to the data is effectively single threaded. Only the network work is actually multi-threaded. > Access to the core hash tabl
by rbranson 8y ago
According to the README all access to the data is effectively single threaded. Only the network work is actually multi-threaded.
> Access to the core hash table is guarded by spinlock. Because the hashtable access is extremely fast this lock has low contention. Transactions hold the lock for the duration of the EXEC command.
- jdsully 8y agoThis will be improved in future versions. One of my major goals is to make KeyDB work well for large value sizes, >1MB. There’s no reason you shouldn’t be able to cache images as well as text. FLASH support was the first step, and we’ve removed a bunch of unnecessary copies along the way but there is still more work to do.
- gtrubetskoy 8y agoFWIW - my notes on how locking was done in Thredis: https://github.com/grisha/thredis/blob/master/README-THREDIS https://github.com/grisha/thredis/blob/master/README-THREDIS
- jdsully 8y agoThanks! I did look at thredis originally, but the github seemed to not have been maintained at the time.