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

Entity Framework and performance

1 Answer 109 Views
Grid
This is a migrated thread and some comments may be shown as answers.
archimede
Top achievements
Rank 1
archimede asked on 28 Jun 2010, 09:19 AM
I'm using telerik components, objectdatasource and Entity Framework 4 in my web application.
The grid is very simple and the columns have some Telerik comboboxes.

The problem is that the loading of the grid is very slow: it can take 4-5 seconds. A normal Entity Data Access is 2-3 seconds. What can I do to optimize performance?

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 01 Jul 2010, 10:54 AM
Hi Archimede,

We have many optimization techniques and I am sure some of them will be of great help for your project . The info below summarize the most important performance info we already have in our documentation resources:
Optimization Tips series in the blogs:
Optimization Tips:The Rad Managers for ASP.NET AJAX
Optimization Tips: Testing Page Performance
Optimization Tips: Using RadAjaxManagerProxy Controls
Optimization Tips: Using HTTP Compression
Optimization Tips: Optimizing Custom Skins

Optimizing the RadGrid performance.
Please review the following links on how to optimize the performance of RadGrid:
http://www.telerik.com/products/aspnet-ajax/resources/top-performance.aspx
http://www.telerik.com/help/aspnet-ajax/grdviewstatereductiontechniques.html
http://www.telerik.com/help/aspnet-ajax/grdsavinggridviewstateinsession.html
http://www.telerik.com/help/aspnet-ajax/radinputmanager_performance.html

In the worst case when a grid is bound to huge data in the web server the RadGrid gives great performance. Working with web services and JSON increase the performance:
    http://blogs.telerik.com/VladimirEnchev/Posts/08-05-23/SQL_Server_sorting_paging_and_filtering_with_RadGrid_client-side_data-binding_to_WebService.aspx?ReturnURL=%2fVladimirEnchev%2fPosts.aspx

http://demos.telerik.com/aspnet-ajax-beta/grid/examples/client/declarativedatabinding/defaultcs.aspx

 ViewState size:  Some of the grid operations can work with completely turned off ViewState.
    Example: http://demos.telerik.com/aspnet-ajax/grid/examples/programming/viewstate/defaultcs.aspx
    In client-side data-binding scenarios you do not need the ViewState also:
    Example: http://demos.telerik.com/aspnet-ajax/grid/examples/client/databinding/defaultcs.aspx

 JavaScript $create clause size: Depends on selected features. Can be turned off along with all other resources:
    Example: http://blogs.telerik.com/VladimirEnchev/Posts/08-07-15/Telerik_RadGrid_Section_508_Compliance.aspx?ReturnURL=%2fBlogs.aspx

 Number of requests: Most of the grid images come from the grid CSS sprite which minimizes number of requests to the server for resources. Can be minimized with RadScriptManager and RadStyleSheetManager.
Other: http://www.telerik.com/help/aspnet-ajax/grdviewstatereductiontechniques.html

I hope his helps.

Regards,
Radoslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
archimede
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or