Kendo TreeView filtering became slow with version upgrade

1 Answer 60 Views
Data Source TreeView
Vedad
Top achievements
Rank 2
Bronze
Bronze
Veteran
Vedad asked on 28 Jul 2023, 08:26 PM

Hi,

I am using kendo ui treeview for sort of selectable hierarchical menu. This menu can contain pretty much data with deep tree hierarchy.

Ever since we implemented it (few years ago), we used approach suggested here:
https://docs.telerik.com/kendo-ui/knowledge-base/filter-out-search-results

This was working fine so far. However, we finally started updating things to the newer versions, and after update to 2022.2.802 this method became 3-4 times slower than before.
For example same filtering method with exactly same dataset and the same search keyword has following values:

Before update:
measure filter 0.4153999999985099

After update:
measure filter 2.279300000000745

Even this piece of code gets slower

      if (data) {
        // Re-apply the filter on the children.
        dataSource.filter({ field: "hidden", operator: "neq", value: true });
      }

(same iteration)

Old:
measure dsFilter 0.001200000002980232

New:
measure dsFilter 0.013800000000745058

Unfortunately, we cannot update directly to the latest version to test if it is better. This is because of styling braking changes which we have to address and other constraints that we have. We have to do it gradually.

Could you please advise what to do, since depending on the dataset size, filtering can last more than 7-8 seconds, and reseting filtering even longer. This basically renders the feature unusable. 

Thank you very much.

Regards, Vedad

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 02 Aug 2023, 12:59 PM

Hello, Vedad,

Could you please share an example where we can investigate the slow filtering of the TreeView? I will then be able to provide further information on the matter.

Looking forward to your reply.

Regards,
Martin
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Vedad
Top achievements
Rank 2
Bronze
Bronze
Veteran
commented on 01 Sep 2023, 08:27 AM

Hi Martin, 

sorry for the delay, but I was on vacation. 

I can't share example from our app as it is not possible due to many reasons.

I have to try to figure out if I can generate similar dataset so I can create dojo example to show you. 
Generally, 
In the meantime, maybe you could check on your side if changes done between versions could have influenced this. 

Thanks again and regards,

Vedad

Neli
Telerik team
commented on 06 Sep 2023, 06:48 AM

Hi Vedad,

Could you please send us more information about how huge the dataset on your side is? How many items with approximately how many levels? Also from your initial reply, I see that you have upgraded to version 2022.2.802. Which was the previous Kendo version used on your side before the upgrade?

Looking forward to your reply.

Regards,

Neli

Vedad
Top achievements
Rank 2
Bronze
Bronze
Veteran
commented on 12 Sep 2023, 02:03 PM

Hi Neli, 

sorry for being slow, but I was trying to get info for you.

Apparently, dataset in question has cca 9000 objects, with 3-4 level deep hierarchy. 

Each object in response has 12 fields.. We search by simple text field (name)

Version we used before was: 2021.3.1207

Thank you very much
Regards,
Vedad

Neli
Telerik team
commented on 14 Sep 2023, 11:39 AM

Hi Vedad,

Thank you for the additional information provided. I will need some additional time to perform the test locally. I will come back to you once I have more information to share on the matter.

Thank you very much for your patience.

Regards,

Neli

Neli
Telerik team
commented on 20 Sep 2023, 12:33 PM

Hi Vedad,

Thank you for your patience.

I managed to replicate the issue in the following Dojo example where I checked the performance when filtering with different Kendo versions. - https://dojo.telerik.com/@NeliKondova/UGomaNEX

Indeed, you are correct and the filtering is getting more time with the newer Kendo versions. Thus, I discussed the issue with a developer form the team. The observed issue in the performance is due to implementations related to CSP - https://docs.telerik.com/kendo-ui/intro/widget-basics/content-security-policy#for-r1-2023-and-later-working-with-kendo-ui-for-jquery

However, I logged the following Bug report on your behalf:

- https://feedback.telerik.com/kendo-jquery-ui/1624289-datasource-filter-method-performance-is-getting-slower

You can track the issue in the Feedback Portal in order to be notified about our progress on it.

As a token of gratitude for reporting the issue I have updated your Telerik points.

Regards,

Neli

 

Vedad
Top achievements
Rank 2
Bronze
Bronze
Veteran
commented on 21 Sep 2023, 02:13 PM

Hi Neli,

Thank you very much for your assistance.

Looking forward to this fix as soon as possible. :)

Have a nice day.

Regards

Vedad

 

Tags
Data Source TreeView
Asked by
Vedad
Top achievements
Rank 2
Bronze
Bronze
Veteran
Answers by
Martin
Telerik team
Share this question
or