In my application, the first path segment represents a specific object.  If
the URL is *domain.com/alice/context/view/*, traversal will put the
*alice* object
into *request*.

The number of users such as *alice* will be very small relative to
pageviews, so it seems it would be better to keep the objects loaded in
memory rather than pulling one from the disk for every request.  What is
the best way to do this?  Python discourages globals, and Pyramid
discourages thread locals.  Is one of those the best way, or is there
something else I'm unaware of?

Best Regards,
Theron Luhn
Web Developer, Panthr

Tel: 608.205.4223
Email: [email protected]
Web: www.madebypanthr.com

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to