[Python-ideas] Async API

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Oct 25 03:29:32 CEST 2012


On 25/10/12 14:07, Yury Selivanov wrote:
> Right.  And that rolling back - a tiny db query "rollback" - is an
> async code,

Only if we implement it as a blocking operation as far as our
task scheduler is concerned. I wouldn't do it that way -- I'd
perform it synchronously and assume it'll be fast enough for
that not to be a problem.

BTW, we seem to be using different definitions for the term
"query". To my way of thinking, a rollback is *not* a query,
even if it happens to be triggered by sending a "rollback"
command to the SQL interpreter. At the Python API level,
it should appear as a distinct operation with its own
method.

-- 
Greg



More information about the Python-ideas mailing list