Lior Vernia has submitted this change and it was merged.
Change subject: engine: Reduce DB queries for interfaces in GetStats
......................................................................
engine: Reduce DB queries for interfaces in GetStats
The same data was fetched twice as part of the GetStats flow - now it
is fetched only once and cached for reference during the flow.
Change-Id: I0581f29b368fdf5771aeace2c5c200f726bdb912
Signed-off-by: Lior Vernia <lvernia(a)redhat.com>
---
M
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/VdsUpdateRunTimeInfo.java
M
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/GetStatsVDSCommand.java
2 files changed, 23 insertions(+), 11 deletions(-)
Approvals:
Omer Frenkel: Looks good to me, but someone else must approve
Moti Asayag: Looks good to me, approved
Lior Vernia: Verified
--
To view, visit
http://gerrit.ovirt.org/32560
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I0581f29b368fdf5771aeace2c5c200f726bdb912
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Lior Vernia <lvernia(a)redhat.com>
Gerrit-Reviewer: Alona Kaplan <alkaplan(a)redhat.com>
Gerrit-Reviewer: Lior Vernia <lvernia(a)redhat.com>
Gerrit-Reviewer: Liran Zelkha <lzelkha(a)redhat.com>
Gerrit-Reviewer: Moti Asayag <masayag(a)redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofrenkel(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server