Refactor tables templates for performance reasons

Registered by Itxaka Serrano

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
Completed by
Itxaka Serrano

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/refactor-tables-templates,n,z

Addressed by: https://review.openstack.org/254741
    Refactor includes in the tables templates

Addressed by: https://review.openstack.org/266968
    Add middleware to track template rendering time

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.