On 11/16/05, Brant Harris <[EMAIL PROTECTED]> wrote:
> Is it wise to store a large amount of data in an anonymous session?
> For instance, and most applicable to my design, if I store results of
> a search in a session like so:
> request.session['search_results'] = objects.get_list(name__icontains=query)
>
> And then I can more easily give paged results back to the user.  So
> that if they request again with a "page" specified in the request.GET
> dict, then I can simply return the results from the cached list.
>
> My concern is that this will eat up memory like a zombie.

Because sessions are stored in the database, this won't eat up much
memory. It's an interesting idea, and I'd encourage you to explore it
more and report back to the list with how it's working.

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com | chicagocrime.org

Reply via email to