Actions
Bug #12650
closedDirective and Rule tree filter are very slow
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:
Description
On a server with hundreds of directifs, the directive tree filter is very slow (~5 seconds) and blocks the application when doing a search.
Seen on Firefox 52 ESR with Rudder 4.3.1.
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.3.2 to 410
Updated by Nicolas CHARLES over 6 years ago
- Target version changed from 410 to 4.1.13
Happens also on 4.1
Updated by Nicolas CHARLES over 6 years ago
Ok, it seems it is heavily manipulating the DOM, and at each character it does a change.
Searching for "test" in one JS call is pretty fast (at least, barely noticable)
$('#activeTechniquesTree').jstree('searchtag', 'test', [], false);
while simulating the typing with
$('#activeTechniquesTree').jstree('searchtag', 't', [], false);$('#activeTechniquesTree').jstree('searchtag', 'te', [], false);$('#activeTechniquesTree').jstree('searchtag', 'tes', [], false);$('#activeTechniquesTree').jstree('searchtag', 'test', [], false);
is pretty slow
as described in https://github.com/vakata/jstree/issues/1195 ( http://jsfiddle.net/no430s1f/2/ ) we should not immediately search, but rather have a small grace period for text change in the search box
Updated by Nicolas CHARLES over 6 years ago
- Status changed from New to In progress
- Assignee changed from Raphael GAUTHIER to Nicolas CHARLES
Updated by Nicolas CHARLES over 6 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Nicolas CHARLES to Vincent MEMBRÉ
- Pull Request set to https://github.com/Normation/rudder/pull/1945
Updated by Nicolas CHARLES over 6 years ago
- Assignee changed from Vincent MEMBRÉ to Raphael GAUTHIER
Updated by Nicolas CHARLES over 6 years ago
- Assignee changed from Raphael GAUTHIER to Vincent MEMBRÉ
Updated by Nicolas CHARLES over 6 years ago
- Assignee changed from Vincent MEMBRÉ to Raphael GAUTHIER
Updated by Nicolas CHARLES over 6 years ago
- Related to Bug #12690: Rule tree filter is a bit slow added
Updated by Rudder Quality Assistant over 6 years ago
- Assignee changed from Raphael GAUTHIER to Nicolas CHARLES
Updated by Nicolas CHARLES over 6 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|eaebde7b0b5f4094065b65b3d96a0c6db5dd496a.
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.1.13 to 4.1.12
Updated by Benoît PECCATTE over 6 years ago
- Status changed from Pending release to Released
Updated by Vincent MEMBRÉ over 6 years ago
- Subject changed from Directive tree filter is very slow to Directive and Rule tree filter are very slow
Updated by Vincent MEMBRÉ over 6 years ago
- Related to deleted (Bug #12690: Rule tree filter is a bit slow)
Actions