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. |
||
---|---|---|
.. | ||
inmem | ||
internal/appstate | ||
mysql | ||
datastore_app_test.go | ||
datastore_campaigns_test.go | ||
datastore_email_changes_test.go | ||
datastore_hosts_test.go | ||
datastore_invites_test.go | ||
datastore_labels_test.go | ||
datastore_migrations_test.go | ||
datastore_osquery_options_test.go | ||
datastore_packs_test.go | ||
datastore_password_reset_test.go | ||
datastore_queries_test.go | ||
datastore_scheduled_queries_test.go | ||
datastore_targets_test.go | ||
datastore_test.go | ||
datastore_unicode_test.go | ||
datastore_users_test.go | ||
mysql_test.go |