On 6/8/06, Arnar Birgisson <[EMAIL PROTECTED]> wrote:
> I've been looking at coding SA 0.2 support in TG whenever I can (which
> hasn't been much lately). I sent Godoy patches for removing
> ActiveMapper from the 0.1 code some time ago.
>
> If one uses the threadlocal mod in 0.2, going from 0.1 to 0.2 is
> dead-easy. I could possibly post a patch for that today or tomorrow.
> However, I've been struggling with the descision if that mod is
> appropriate in a web-application. Mabey we should allocate a session
> object to each request and use that instead. Has anyone thought about
> this?

I haven't looked closely enough to say for sure, but I believe
threadlocals are a good way to go for a webapp. TG offers implicit
transactions at the request boundary and each request sits on its own
thread.

Basic database support should not involve sessions. Sessions make
scaling trickier, so I wouldn't want to apply sessions to something as
basic as db access. Besides, you really don't want database
connections getting stuck an on individual user anyhow

Kevin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to