Merge ~bjornt/maas:2.6-bug-1835316-add-event-index into maas:2.6
Proposed by
Björn Tillenius
Status: | Merged |
---|---|
Approved by: | Björn Tillenius |
Approved revision: | 58158cff581a1bc45eaf696f33053be7bbb15a5f |
Merge reported by: | MAAS Lander |
Merged at revision: | not available |
Proposed branch: | ~bjornt/maas:2.6-bug-1835316-add-event-index |
Merge into: | maas:2.6 |
Diff against target: |
174 lines (+42/-12) 5 files modified
src/maasserver/migrations/maasserver/0194_machine_listing_event_index.py (+24/-0) src/maasserver/models/event.py (+6/-0) src/maasserver/models/tests/test_node.py (+9/-9) src/maasserver/rpc/tests/test_boot.py (+1/-1) src/metadataserver/tests/test_api.py (+2/-2) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
MAAS Lander | Needs Fixing | ||
Björn Tillenius | Approve | ||
Review via email: mp+372183@code.launchpad.net |
Commit message
Backport b745a2765caa132
LP: #1835316 - Requesting machine listing results in 100% postgresql CPU
usage
Add index to the event table to speed up machine listing.
The index speeds up getting the latest event for each node that is
displayed on the machine listing.
To post a comment you must log in.
Self-approve backport.