3 ms·
This is great. I was going to write my own lib that would use a whole bunch of threads and a non-blocking queue system for executing queries. While I find Torna
by IgorPartola 15y ago
This is great. I was going to write my own lib that would use a whole bunch of threads and a non-blocking queue system for executing queries. While I find Tornado somewhat half-baked (it defaults to returning errors in HTML, but was built for handling feeds; its content-encoding header handling is broken, etc), there are lots of applications where non-blocking MySQL would be great.
- thingsilearned 15y agoThe title is a little misleading. The method here certainly isn't dependent on Tornado, but for explanation/demo purposes it's a common context to explain it in.
- IgorPartola 15y agoYes, I realize. This would work for anything in Python, and possibly other things as well. node.js could ditch thread pool as well.
- irrelative 15y agoIndeed it is not dependent on tornado, but it does use the tornado event loop in this example.