Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Seems to me you can do that in a way that ensures low contention between consumers by using a read-biased MRSW lock. It's not free such a construction, but it really shouldn't eat into your read performance all that much. You're adding hundreds of nanoseconds to your query time by acquiring and releasing a lock. Unless you're already serving millions of queries per second per thread, this is piss in the ocean.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: