mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 17:28:54 +00:00
96fc090723
- Debounce frontend to reduce number of target searches in live query. - More efficiently calculate label counts in live query and hosts dashboard. Instead of using the (slow) CountHostsInTargets function, retrieve the host counts while looking up the labels. - Optimize targets search query. Removing the nested query retrieves the same logical result set, but substantially optimizes MySQL CPU usage. Testing indicates about a 50% reduction in MySQL CPU usage for the frontend targets search API call after applying this change. |
||
---|---|---|
.. | ||
SelectTargetsInput | ||
SelectTargetsMenu | ||
TargetDetails | ||
TargetOption | ||
_styles.scss | ||
index.js | ||
SelectTargetsDropdown.jsx | ||
SelectTargetsDropdown.tests.jsx |