[2.4, websockets] Only request and send what is needed on node list websocket

Bug #1759091 reported by Lee Trager
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Lee Trager
2.3
Triaged
High
Unassigned

Bug Description

The websocket handler allows the output to change whether the request is a get or list. However it only has one queryset. The node object prefetches everything it needs for the detailed view even when listing. The websocket should only be pulling from the database what it is actually going to send to the client.

Node listing is also sending alot of information not used on the listing page. Only data actually needed to render the page should be fetched from the database and sent.

Tags: performance

Related branches

Changed in maas:
milestone: 2.4.0alpha2 → 2.4.0beta1
summary: - Only request and send what is needed on node list websocket
+ [2.4, websocket] Only request and send what is needed on node list
+ websocket
summary: - [2.4, websocket] Only request and send what is needed on node list
+ [2.4, websockets] Only request and send what is needed on node list
websocket
Lee Trager (ltrager)
Changed in maas:
status: Triaged → In Progress
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.