W dniu 19.03.2010 12:10, Tim Golden pisze:
Is it possible you've misunderstood the meaning of the word "serialize" here?
It's not possible, it just happened :)
What's being suggested isn't serialising (ie marshalling, pickling) the data; rather, serialising the *access*, ie pushing all db requests into a queue which is read by one thread which manages the only db connection.
That would make structure of program much more complicated. I would have to create queue for putting there queries and some other extra variables/structure to receive output from db and some more for controlling the execution flow of awaiting threads.
-- best regards princess -- http://mail.python.org/mailman/listinfo/python-list