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

Filtering slow when AggregateFunction is used

2 Answers 57 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Siddhant
Top achievements
Rank 1
Siddhant asked on 05 Feb 2013, 09:17 AM
When i am using the aggregate function the grouping an filtering slows down quite it bit. Is there anyway that the performance can be achieved so that it doesnt slow down as much it is currently. Also it becomes unresponsive during this period.

PS: The aggregate function is a complicated one
var aggregate = new AggregateFunction<ResourceAllocationBE, double>
{
AggregationExpression = models => models.Where(x => x.flag != "Forecast").Select(x => x.period.Where(y => y.date == currentDate).Select(d => d.allocation).Sum()).Sum()/100
,Caption = ""
};

2 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 05 Feb 2013, 09:58 AM
Hi,

Your aggregate function is indeed quite complex and unfortunately we cannot make the Silverlight run-time execute it faster. We simply use LINQ to do filtering, sorting and grouping and if the Silverlight run-time takes a certain amount of time to execute a such LINQ query with such an aggregation in-memory, then we can't possibly make this run faster.

Greetings,
Rossen Hristov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Siddhant
Top achievements
Rank 1
answered on 05 Feb 2013, 10:16 AM
Is there anyway to make the AggregateFunction less complicated and faster in execution
Tags
GridView
Asked by
Siddhant
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Siddhant
Top achievements
Rank 1
Share this question
or