My Code
==================================================
try:
orm.flush()
orm.commit()
except Exception, e :
orm.rollback() # Rollback transaction
# Release all connections and expunge objects
# Don't allow any other code to use session, full of bad data
orm.remove()
return Fault(30, 'Could not insert rows.')
return 'OK'
Maybe try to profile your application to check where it spends that time? Try
repoze.profile.
--
Paweł Stradomski
I'd be more keen to suspect that some lock is held and timeouts rather than
blame network, especially if output is identical in both cases, though you
can check that too.
What exactly is the difference between "with db" and "without db" versions,
code-wise? Could you try to remove functionality by small chunks to see what
lines cause the slowdown?
--
Paweł Stradomski
Perhaps you are sending an incorrect Content-Length header and the
client is waiting for more data to arrive?
Wichert.
--
Wichert Akkerman <wic...@wiggy.net> It is simple to make things.
http://www.wiggy.net/ It is hard to make things simple.
MZ
MZ