On Mon, Oct 3, 2011 at 10:10 AM, Zeldor <[email protected]> wrote:
> But would it be possible to store User data in the session without having to
> fetch it from datastore on every request? My users don't interact with each
> other and they operate only on their own data. So it'd be most efficient to
> store User data in the session and interact with db only when some data is
> changed.
Only the first get for a request will fetch it from the DB, all
following gets will re-use the fetched User instance.
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Authentication-and-sessions-the-right-way-tp3866840p3866866.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to