This is a migrated thread and some comments may be shown as answers.

Cache Dataset

2 Answers 81 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sircutbreaker
Top achievements
Rank 1
sircutbreaker asked on 24 Jun 2009, 03:47 PM
I have a grid that has about a million line items... everyone who would come to the webpage would get the same dataset...

I want to know how to preload it, and place it in memory so that it is cached and ready to display instantly for everyone who visits that page... sort of like you do for the 300,000 line item demo for the grid...

Because of the large size... (and there will be no edits to that grid)... if I were to place the dataset in a session variable.. when serveral users visit the page and load the grid.. it will cause the server to err...(out of memory)

I want one cached dataset that would be used for all visitors.. is that possible?

Your help is appreciated,

Thanks,

Jeff

2 Answers, 1 is accepted

Sort by
0
sircutbreaker
Top achievements
Rank 1
answered on 24 Jun 2009, 06:37 PM
I guess Application["dataset"] is what I was looking for....

How can I make sure that the dataset is always populated so that a user never has to wait....

would I make a helper class that is instantiated in global.asax ?

not sure how to handle this elegantly..

thanks

jeff
0
Georgi Krustev
Telerik team
answered on 29 Jun 2009, 01:48 PM
Hello Jeff,

I will suggest you use Cache class, because the common opinion says it is more officiant than the Application. You can use Global.asax if you need to cache the Dataset on start of the application. Thus the user will not wait for initial load. Otherwise, you can cache it on initial request by the first user. You need to set what expiration of the data should have the Cache class.

Please also note that the questions is not directly related with our controls.

Regards,
Georgi Krustev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
sircutbreaker
Top achievements
Rank 1
Answers by
sircutbreaker
Top achievements
Rank 1
Georgi Krustev
Telerik team
Share this question
or