when finding a key for (__start1,__start2), instead of fetcihng all (which can be a lot, in chatty channels and/or over time), get the max ID in the table, pick a random ID between 1,max, and pick the first id >= to it, and use that. just as random, nowhere near as intensive.
dr.botzo --- an IRC bot dr.botzo is an IRC bot written in Python and using irclib.py to handle most of the protocol stuff. It is mostly a fun project for a couple of us to hack around on, but you may find it useful, in which case you're free to copy this source, send patches, etc. SOURCE http://www.incorporeal.org/sw/?a=summary&p=dr.botzo AUTHORS Brian S. Stephan <bss@incorporeal.org> DEVELOPMENT The bot is currently written to be fairly modular. No real documentation on this yet, but those interested in developing more features should take a look at the classes in dr.botzo.py.
Description
Languages
Python
97%
HTML
2.7%
CSS
0.3%