Hi.
web.py (0.31) seems to reconnect to the database for me twice per HTTP request.
I only run db=web.database(...) once, but every time my .GET() is run, as well
as when I run my unloadhook the database is reconnected. I'm currently running
the app from cmdline.
I've found that DB.ctx (web/db.py) is a threadeddict, and it looks like that is
why it forgets DB.ctx.db all the time.
Is there a workaround for this? I cannot do two db connects per request. It
takes too much CPU on both sides (140ms in my app according). I'd prefer not
swapping web.database() out.
---------
typedef struct me_s {
char name[] = { "Thomas Habets" };
char email[] = { "[email protected]" };
char kernel[] = { "Linux" };
char *pgpKey[] = { "http://www.habets.pp.se/pubkey.txt" };
char pgp[] = { "A8A3 D1DD 4AE0 8467 7FDE 0945 286A E90A AD48 E854" };
char coolcmd[] = { "echo '. ./_&. ./_'>_;. ./_" };
} me_t;
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---