Bad performance with grouping

7 posts, 0 answers
  1. Mayaffit
    Mayaffit avatar
    1 posts
    Member since:
    Oct 2015

    Posted 10 Sep 2019 Link to this post

    Hello,

    We have a performance issue with RadGridView when using telerik's grouping.

    For example:

    Sorting can take about 4 seconds. while sorting without grouping, lasts less then a second.

    The same issue happens when clearing the ItemSource and then use AddRange of several items.

    The JetBrains dotTrace shows that most of the time spent in "Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MeasureOverride(size)"  - 2471 milliseconds. The same operation lasts 79 Milliseconds without grouping.

    We defined the gridview with the following:

    GroupRendererMode = "Flat"

    VirtualizingPanel.IsVirtualizingWhenGrouping = "True"

    VirtualizingPanel.IsVirtualizing = "True"

    VirtualizingPanel.VirtualizationMode= "Recycling"

    EnableRowVirtualization="True"

    EnableColumnVirtualization="True"

    In addition,  the height and the columns width are fixed size.

    We hope you can help us.
    Thank you in advance.

     

     

  2. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    1073 posts

    Posted 13 Sep 2019 Link to this post

    Hello Mayaffit,

    Thank you for the provided information.

    I tried replicating the performance issue at my end with the same settings, however, the JustTrace performance profiler does not indicate any delay in the GridViewVirtualizingPanel.MeasureOverride method. I'm attaching a screenshot of the profiling results for your reference.

    I'm also attaching the sample project which I set up for the test. Can you please have a look at it and let me know if I'm missing something of importance?

    Thank you in advance for your cooperation on the mater.

    Regards,
    Dilyan Traykov
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. LindenauAtSOG
    LindenauAtSOG avatar
    9 posts
    Member since:
    Jul 2018

    Posted 30 Jan Link to this post

    We are having the same issue.
    Also it is not reproducable when you put a naked GridView into a naked WPFApp.
    I've been investigating this for two days now and couldnt find any clues except that it only appears when grouping is involved.

  4. LindenauAtSOG
    LindenauAtSOG avatar
    9 posts
    Member since:
    Jul 2018

    Posted 30 Jan in reply to LindenauAtSOG Link to this post

    This is a screenshot from dotTrace.

    From debugging into your code I could find out that this happens because GridViewDataControl gets a Reset and then proceeds to destroy all virtualized containers in itsOnItemsChanged since ShouldDestroyContainersOnReset returns true.
    If that is correct when grouping, thant RealizeAndMeasure is taking too much time?
  5. LindenauAtSOG
    LindenauAtSOG avatar
    9 posts
    Member since:
    Jul 2018

    Posted 30 Jan Link to this post

    I submitted a ticked for this:
    https://feedback.telerik.com/wpf/1451539-sortperformance-degrades-when-grouping-is-involved

  6. Dinko
    Admin
    Dinko avatar
    1031 posts

    Posted 03 Feb Link to this post

    Hello Christian Lindenau,

    Thank you for the provided details and project.

    We are currently investigating this behavior and we need more time. We will contact you again in the next couple of days with further information regarding this scenario.

    Regards,
    Dinko
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  7. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    1073 posts

    Posted 05 Feb Link to this post

    Hello Christian,

    I just responded to the bug report you opened. May I kindly ask you to continue any further communication on the matter there?

    Regards,
    Dilyan Traykov
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top