Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Piwik UI becomes very slow when having many rows #11308

Merged
merged 3 commits into from Feb 17, 2017
Merged

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Feb 1, 2017

To reproduce eg go to Actions => Pages for Month, then select flatten and "all" in the limit. If you now see like 700-2000 rows or so Piwik UI will take seconds to render and it will be almost impossible to scroll. Doing some profiling I was able to improve it a little by disabling some features when there are > 250 rows. Ideally we would make those features simply faster (if possible) and enable it for all rows but for now it will be better to disable those features and have at least a usable UI

Performance could be still improved but would need to spend more time.

@tsteur tsteur added c: Design / UI For issues that impact Matomo's user interface or the design overall. Needs Review PRs that need a code review labels Feb 1, 2017
@tsteur tsteur added this to the 3.0.2 milestone Feb 1, 2017
tsteur added a commit that referenced this pull request Feb 2, 2017
@sgiehl
Copy link
Member

sgiehl commented Feb 10, 2017

Code looks ok. But there's one thing we could improve. When showing exact 250 entries in an action datatable the row actions are already disabled while the other hover effects are visible. This is caused by https://github.com/piwik/piwik/blob/3.x-dev/plugins/Actions/javascripts/actionsDataTable.js#L60
Changing the selector to tbody > tr like it is in dataTable.js solves that problem. Reason is that tr selector also selects the tr from thead

@tsteur
Copy link
Member Author

tsteur commented Feb 11, 2017

Great catch. Changed the number to 255, I presume this would fix the problem?

@sgiehl
Copy link
Member

sgiehl commented Feb 12, 2017

yep, that fixes the problem as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Design / UI For issues that impact Matomo's user interface or the design overall. Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants