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. Image for the cookie policy date

DeleteRecord performance


I am using a GridGroupingControl.Table (version 4.2) and C#. We have a performance problem when deleting a large amount of records with the following code:

foreach (SelectedRecord r in Table.SelectedRecords)
{
Table.DeleteRecord(r.Record);
}

This can take several hours for 50000 records. Is there a more effective way to delete a large amount of records?




1 Reply

RC Rajadurai C Syncfusion Team January 13, 2009 03:05 PM UTC

Hi Kazuaki,

Thanks for your interest in Syncfusion products.

To get better performance in deleting records, please refer to the GroupingPerf browser sample in the following location
[LocalDrive]:\\Syncfusion\EssentialStudio\[version]\Windows\Grid.Grouping.Windows\Samples\2.0\PerformanceSamples\GroupingPerf

In this sample, the memory usage log is shown which illustrates how faster the records are getting deleted.

Please let me know if you have any further concerns.

Regards,
Rajadurai


Loader.
Live Chat Icon For mobile
Up arrow icon