views:

20

answers:

0

Hello,

I'd like to know what the best choice is. This is what I do in my system:

I'm using grok server and python on the server side; and javascript on the client side. I store all the user data in a session object and this data gets called twice, one to render the HTML on the server side and another to send the data to the client side because the client side is dynamic. I'm using joinedload right know but I know I can't use operations such as, append and remove, when the user update or add something.

The timeout of the session object is one hour. I'd like to know if it's better to use dynamic load because I guess with dynamic load you have an open connection to the database, so it might take many resources. The user object might contain a big collections of data.

Thanks in advance!