Closed xiaoxxcool closed 6 years ago
Just curious. Isn't StoreReader read only? Why does it need to be thread safe?
my server contains some data update periodically, each request is processed in different threads, when the data is taken from the shared StoreReader instance, lock is required, or it will get the wrong data. what is a good practice to use paldb in such circumstance?
I made some efforts to make paldb reader works in multi-thread environment, the perfermance decreased about 20% in single thread read, the perfermance test report is
the benefit is you can share the StoreReader instance without lock.