Project

General

Profile

Actions

Bug #18877

open

Fix Host::Managed#bmc_nic performance

Added by Shimon Shtein about 7 years ago. Updated about 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Performance
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Two issues with this method:
1. It uses a scope (bmc) to access the interfaces which causes a query, even if the interfaces are already preloaded into the host.
2. The result is not cached either, which means multiple accesses to #bmc_nic will cause multiple queries. For example accessing #sp_ip and #sp_mac.

Good example when it's happening is api hosts index query.

Actions #1

Updated by Dominic Cleal about 7 years ago

  • Category set to Performance
Actions

Also available in: Atom PDF