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

How does the scheduler manage data?

3 Answers 174 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Peng Hock Lee
Top achievements
Rank 1
Peng Hock Lee asked on 09 Oct 2008, 03:24 AM
Hi,

I am currently having a problem migrating data from my previous scheduler to your scheduler. My problem is mostly on the performance issue I am facing.
That is why I would like to know, how does telerik scheduler manage data loading?

for example
my scheduler uses recurrence function and it is bind to a sqldatasource using early binding method. and the sqldatasource statement is "SELECT * FROM myTABLE WHERE EVENTTYPE = 5"
and i set the selected date of my scheduler to 2008 Oct 06.

now here is my question,
1. does it load every data where the eventtype = 5 and store it on the buffer on the first run, and only shows data which is in the date range of my scheduler in this case 2008 Oct 05 until 2008 Oct 11,

2. or doest it automatically load data where the eventtype = 5 and startdate > 2008 Oct 05 and startdate < 2008 Oct 11?

3. if you use the 2nd type of data loading, how do you handle data that start before 2008 Oct 05, but recurs until 2008 Oct 12?



How does the scheduler optimised the data loading that's cover the occurence events to display the desire result set out for day view, week view and month view.  My concerns is that the performance may drop as the pointer need to start from record 1 to last record in order to handle the occurence events.

3 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 09 Oct 2008, 11:56 AM
Hello Peng,

By default, RadScheduler will not perform filtering on the data coming from the data source. Ultimately, it will ignore appointments outside of the visible range, but they will still be in the appointments collection.

We have an example that demonstrates how this filtering can be done at the data source:
What it basically does is to select all appointments in the visible range plus all recurring appointments. We need to read the recurring appointments unconditionally, as we cannot "guess" whether they will occur in the visible range or not without parsing the rule first.

An alternative would be to process the recurring appointments on the SQL server. We have such sample for SQL Server 2005 (and up) that evaluates the recurrence rules in a managed stored procedure. More info here:

All the best,
Tsvetomir Tsonev
0
Simon
Telerik team
answered on 10 Oct 2008, 02:30 PM
Hi Peng,

I am following up in this support ticket with the following request:

May I have your permission to convert this ticket into a forum thread, so that other members of the community see its content.

Your question is very interesting and and others could benefit from the response as well.

Please let me know what do you think.

Sincerely yours,
Simon
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Peng Hock Lee
Top achievements
Rank 1
answered on 14 Oct 2008, 01:07 PM
Hi,

By all means, please go ahead to convert to forum thread if you think it benefit the other members of the communities.

Thanks and Warm Regards, Always
Lee Peng Hock
Tags
Scheduler
Asked by
Peng Hock Lee
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Simon
Telerik team
Peng Hock Lee
Top achievements
Rank 1
Share this question
or