Cache Dataset

3 posts, 0 answers
  1. sircutbreaker
    sircutbreaker avatar
    111 posts
    Member since:
    Oct 2007

    Posted 24 Jun 2009 Link to this post

    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. sircutbreaker
    sircutbreaker avatar
    111 posts
    Member since:
    Oct 2007

    Posted 24 Jun 2009 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 29 Jun 2009 Link to this post

    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.
Back to Top