zopefoundation / ZODB

Python object-oriented database
https://zodb-docs.readthedocs.io/
Other
682 stars 92 forks source link

ZODB with nogil Python #379

Closed mrsipan closed 1 year ago

mrsipan commented 1 year ago

FEATURE REQUEST (Maybe)

Perhaps the biggest performance bottleneck when deploying ZODB is that it can only make use of one CPU. With the advent of nogil, is there any chance ZODB can be run with nogil Python and thereby take advantage of multiprocessor machines?

jimfulton commented 1 year ago

TIL nogil

Normally, ZODB isn't a compute bottleneck. Do you have reason to believe otherwise?

ZODB is already thread safe, in that different threads can each have a connection to the same database, local or otherwise.

Whether ZODB applications can (or need to) use multiple multiple threads is up to the application.

In any case, I don't think any changes to ZODB would be necessary, as it is already thread safe.