On 2/15/06, Michael Bayer <[EMAIL PROTECTED]> wrote: > I'll have to admit that since I am not very familiar with Twisted I cant > have too much to offer this discussion until I study it carefully and > learn all about these various models being discussed. Although my > intuitive sense tells me that there should not be any changes needed to > SQLAlchemy directly to support it....I am a much bigger fan, as some may > have noticed, of external context control/awareness through devices like > thread-local variables and similar ideas. An execution model so exotic > that libraries used within it require fundamental changes in order to > function would be suspect.
Particularly for something like a database layer that runs blocking operations (reads from the database) all the time, Twisted does require changes to how things work. Someone made an SQLObject-like OR mapper for Twisted and they implemented a nice decorator to make the usage somewhat palatable: http://usrsrc.org/darcs/tada/doc/examples/taoBasicUsage.py One function with a bunch of yields is a lot nicer than a ton of functions (having to create a callback for *each* database call!). For my own work, I've generally chosen ease-of-coding over the ability to handle thousands of simultaneous requests on a single box. (Some have argued that multithreaded programs aren't easy, but I guess that's all a question of how one's brain works...) Kevin ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ Sqlalchemy-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

