سؤال

When running gunicorn in gevent mode, are the monkey patches (particularly those for threadlocals) described here, which make threadlocals greenlet-locals, already applied automatically?

(I am running django and currently use threadlocals for a bit of fast-caching of large query results -- I understand gevent/greenlet uses an alternative model to traditional threading, thus my concern).

هل كانت مفيدة؟

المحلول

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top