Preload Into Cache? |
Post Reply |
Author | |
hildegoat
Newbie Joined: 30 November 2006 Status: Offline Points: 11 |
Post Options
Thanks(0)
Posted: 07 February 2007 at 11:26am |
I have the calendar control running nicely, but I'm still running into some slowness issues.
I'm using a custom data provider (SQL Server) and using the providerSQLServer and SQLDataHelper files. I have multiple users (we use it for clinic appointments) so I need to refresh the data every couple of minutes. I do the CalendarControl.DataProvider.ClearCache() and CalendarControl.Populate() on a timer to refresh the calendar. The slowness occurs when the user is going back and forth through dates after a refresh. I know this occurs because it has to load the data into the cache and display it, causing a delay. If the user is looking at cached data, the calendar is speedy. Is there any possible way that I can preload data into the cache so that I can call it after a refresh? That way the user is always using cached data and only taking the slowness hit once (on the refresh, not on every flip forward and backward). |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hi,
To preload events for a specific day, simply call CalendarControl.DataProvider
.RetrieveDayEvents for this day.
Also you can make this caching regular using timer for example. Example is our Date Picker where dates marked with bold in the background using timer and RetrieveDayEvent method. -- WBR, Serge |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |