ofekhorizon
Member
Hi there,
I have a web site that I've built in VB.NET, that contains few large datasets of the content of the site.
I fill the dataset from the database at the home page (if it is empty!) and then keep it in a shared public class.
This way, it fills only once for all the users and I save time filling it again in every page and every time that a new user visits the site.
I have a problem/question though: I'm not sure where the public shared class "sits" and if it uses cash memory or... how exactly does it work???
I'm afraid that when it will contain too much data, it will use lots of memory and slow down the site.
My question are:
1. Where does the shared public class sits?
2. How often does it clear up? Is it there forever???
Hope someone can answer these question...
Thanx in advance,
Ofek Cohany.
I have a web site that I've built in VB.NET, that contains few large datasets of the content of the site.
I fill the dataset from the database at the home page (if it is empty!) and then keep it in a shared public class.
This way, it fills only once for all the users and I save time filling it again in every page and every time that a new user visits the site.
I have a problem/question though: I'm not sure where the public shared class "sits" and if it uses cash memory or... how exactly does it work???
I'm afraid that when it will contain too much data, it will use lots of memory and slow down the site.
My question are:
1. Where does the shared public class sits?
2. How often does it clear up? Is it there forever???
Hope someone can answer these question...
Thanx in advance,
Ofek Cohany.