We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

large data hidden column

Thread ID:

Created:

Updated:

Platform:

Replies:

120192 Sep 9,2015 10:28 AM Sep 11,2015 07:41 AM Windows Forms 3
loading
Tags: GridGroupingControl
Felipe Bahiana Almeida
Asked On September 9, 2015 10:28 AM

Hello, I have one problem and would like to have suggestion on how to solve it.

I am currently using one hidden column that holds 2 years of historical data in order to calculate summaries. I does not consume to much memory (average application consuption is aroud 200 MB)
Now I have a requisite to increase the size of those colums to 8 years of data. The first attempt to do that increase the memory consuption to (2 GB)

I wonder if there is a better solution to handle this type of situation.

Thanks for sugestions in advance

Adhikesevan Kothandaraman [Syncfusion]
Replied On September 10, 2015 03:27 AM

Hi Felipe,

Thank you for contacting Syncfusion Support.

We are unclear and need to clarify few things from your post. It will be helpful for us to provide a proper solution.

Clarification:

1)      Is that you need to calculate the Summary value for hidden columns also using SummaryValueDescriptor? If no, then you can remove those columns from binding using, for example, Select SQL query or TableDescriptor.Columns.Remove() methods while setting the data source.

 

2)      Is that the memory consumption gets high while large data along with the summaries or particularly calculating the summary value of the hidden columns?

3)      Which of these two methods you are using for hiding the columns?


Method 1:

//Remove the VisibleColumns from the table descriptor collection

this.gridGroupingControl1.TableDescriptor.VisibleColumns.Remove("ColumnName");


Method 2:

//Hide the columns by setting the column width as

this.gridGroupingControl1.TableModel.Cols.Hidden["ColumnName"] = true;


Regards,
Adhi.


Felipe Bahiana Almeida
Replied On September 10, 2015 09:51 AM

Question 1 - I am not using the SummaryValue, I use the manual calculated sumaries.
Question 2 - I do not calculate sumaries on hidden columns. There is one visible column that holds the value for a particular item, but to calculate sumaries, I have to use data that is in a column of the datasource, but there is no equivalent column in the TableDescriptor.
Question 3 - None of them. The column exists in the DataSouce (DataTable) but the table descriptor does not have a ColumnDescriptor for that.

Venkatesh Sundaram [Syncfusion]
Replied On September 11, 2015 07:41 AM

Hi Felipe,

Please use the below optimization settings to increase the performance in GridGroupingControl.


girdGroupingControl.InvalidateAllWhenListChanged = false;
girdGroupingControl.AllowedOptimizations = EngineOptimizations.All;
girdGroupingControl.CounterLogic = EngineCounters.YAmount;
girdGroupingControl.UseDefaultsForFasterDrawing = true; // GDI interop drawing, FirstNRecords Summaries used to increase painting performance
girdGroupingControl.TableOptions.ColumnsMaxLengthStrategy = GridColumnsMaxLengthStrategy.FirstNRecords;
girdGroupingControl.TableOptions.ColumnsMaxLengthFirstNRecords = 100;



Refer the sample from our browser sample shipped along with below location. it demonstrates performance behavior in GridGroupingControl.
Grid Grouping Samples -> Engine Optimization Demo
Grid Grouping Samples -> Grouping Performance Demo



Here are some suggestions for the memory foot print:


The performance of loading the data’s can improve by making the child table of the Grid to load on demand. It avoids the performance delay by loading the data’s of the child only when it is expanded or needed.
 
The property UseLazyUniformChildListRelation must set to true to make the child table load on demand.

gridGroupingControl1.UseLazyUniformChildListRelation = true; 


To solve the memory footprint issue, avoid all the values to be cache. Set the CacheRecordValues as false.
gridGroupingControl1.Engine.CacheRecordValues = false; 


To support for groups and filtered records for large data sources, reduce the memory footprint by disabling the counters where the application is not needed.
gridGroupingControl1.Engine.CounterLogic = EngineCounters.YAmount; 


To reduce the auto size calculation for the column to some rows, where the performance can be increased.
It can be done by providing the FirstNRecords to the ColumnsMaxLengthStrategy, and specifying the number of record in ColumnMaxLengthFirstNRecords.

gridGroupingControl.TableOptions.ColumnsMaxLengthStrategy = GridColumnsMaxLengthStrategy.FirstNRecords;
gridGroupingControl.TableOptions.ColumnsMaxLengthFirstNRecords = 50;//the number of records you want checked.


Regards,
Venkat.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;