By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,965 Members | 1,779 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,965 IT Pros & Developers. It's quick & easy.

MROW Locking

P: n/a
Can anyone direct me to a good resource on how to do MROW Locking
efficiently in Python. The recipe at
is actually quite inefficient (not sure if it is the code or MROW

I have a dictionary (a cache lets say or some sort of index) which
needs to be accessed by multiple threads. Most of the time its just
being read. Very rarely, I have to iterate over it (sometimes writing,
mostly reading), sometimes I have to update a single entry or multiple
entries (ala dict.update()). I'd like to know the best way to make
this happen (i.e. is MROW really what I am looking for or is there
something else?).

Is there a good way to do this using the in-built Lock and RLock
This project is part of a commercial database product.


May 6 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.