2 ms·
What's a blocking database query? Readers don't block writers and writers don't block readers in any sane database in the last 20 years. The situation you can
by gaius 18y ago
What's a blocking database query? Readers don't block writers and writers don't block readers in any sane database in the last 20 years.
The situation you can see is unexpectedly long-running queries (say distributed transactions) causing the middle tier's connection pool to be exhausted, but that's not the same thing at all.
- ajross 18y agoTheir point is that it's a synchronous query. Just like a blocking read from a disk file, you have to wait until the answer is available before issuing another one. If you have a poorly threaded app server (which seems to be the use case here), that's a needless performance bottleneck.
- tptacek 18y agoIf you're trying not to spawn threads at all, blocking database connections are also a dealbreaker.