Closed Bug 674817 Opened 15 years ago Closed 14 years ago

Find a nonblocking way to talk to MySQL

Categories

(support.mozilla.org Graveyard :: Chat, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX
Future

People

(Reporter: erik, Unassigned)

Details

There's just no denying it--we need to grab a thing or two out of MySQL from our single-threaded chat server. It would be great if it didn't have to go through a bunch of rigmarole to do it. Sync has had a lot of luck with pymysql. It's basically the same speed, pure Python (yay, less stuff to compile), and can be monkeypatched into nonblockingness by gevent. Maybe give it a try. https://github.com/petehunt/PyMySQL/
If you do try PyMySQL, make sure you get the version that uses socket.sendall() rather than send(); this was causing problems under load for Sync. Likewise, get MyConPy >= 0.3, where an identical bug was fixed. Ref: http://tarekziade.wordpress.com/2011/07/12/firefox-sync-python/
Live Chat rewrite bugs -> Future
Target Milestone: 2011Q3 → Future
Closing out a number of new chat system bugs. If we revisit in the future we'll almost certainly start over.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
Product: support.mozilla.org → support.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.