in reply to Avoid Locking Entire Hashes
Even some DB's such as SQLite don't do "row locking" (as opposed to full table locks). On MySQL myisam tables don't row-lock, whereas innodb tables will. If it's becoming an issue, you may need to look at performing all of your shared-hash writes grouped together, in as few places in the script as possible to minimize the possibility of other threads blocking during a lock. It would be a similar philosophy to the old adage, "Print seldom, print late." If that's not cutting it, you could migrate to a database with row-locking support.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Avoid Locking Entire Hashes
by jagan_1234 (Sexton) on Jun 13, 2011 at 20:52 UTC |