There has been a lot of interesting things happening in the async area of Python. Projects like gevent or Concurrence all provide WSGI servers and async database drivers.
So it looks like it should be possible to run Django on such an async framework. I'm hoping to learn more about this. Some questions: - Has anyone run Django asynchronously? What's your experience? - Django officially supports MySQLdb. To make async db calls, it'd be necessary to use an async database driver (gevent-mysql or concurrence.database.mysql.client) or a pure python driver like MySQL Connector that can be monkey patched. They support DBAPI 2.0. What does it take to make Django work with those drivers? - Concurrent QuerySet. Say you have 2 querysets: q1 = Profile.objects.filter(name="foo") q2 = Message.objects.filter(name="bar") How do you run them concurrently? It's not uncommon for social apps to require 10 or more SQL queries for each page: look up the badges you've earned, look up your reputation points, check for new messages, look up friends, look up latest updates from friends, look up forum threads you'reparticipatng in, retrieve "tweets" you've been following, items you're selling, items you're buying, etc etc. It'd be great to be able to fire off all those queries in parallel, especially with Django 1.2 all those queries could actually be processed in parallel by different database servers. Please share any ideas or experiences you have. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

