Refactor tables templates for performance reasons
Summary
=======
Rework the table template so obtain performance gains when displaying a high number of items
Motivation
========
It seems that when a high number of items are displayed on a table (>1000) the template render is very slow. This is due to the templates having the "include" directive, so for 1000 items some templates are re-called 7000 times.
Description
=========
Refactor the templates to use less "include" directives when possible. Should not make the templates unreadable by doing so.
On my own tests with 1000 users, the time to render is about 64% lower (39~ seconds to 14~ seconds)
UX
===
No implications
Testing
======
Testing needs to be done to make sure that the reworked templates result in the same tables as the old templates.
Outside Dependencies
==================
No outside dependencies
Requirements Update Required
=======
No requirements
Doc Impact
=========
No doc impact
Blueprint information
- Status:
- Complete
- Approver:
- David Lyle
- Priority:
- Undefined
- Drafter:
- Itxaka Serrano
- Direction:
- Needs approval
- Assignee:
- Itxaka Serrano
- Definition:
- Obsolete
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
- Itxaka Serrano
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Refactor includes in the tables templates
Addressed by: https:/
Add middleware to track template rendering time