fleet/server/datastore
Zachary Wasserman 96fc090723 Improve server performance for host operations
- 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.
2020-07-21 14:05:46 -07:00
..
inmem Refactor label membership storage 2020-07-21 14:05:46 -07:00
internal/appstate Clean up unused DB tables, migrations, and code (#2258) 2020-07-08 13:02:18 -07:00
mysql Improve server performance for host operations 2020-07-21 14:05:46 -07:00
datastore_app_test.go Add support for multiple enroll secrets (#2238) 2020-05-29 09:12:39 -07:00
datastore_campaigns_test.go Refactor label membership storage 2020-07-21 14:05:46 -07:00
datastore_email_changes_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
datastore_hosts_test.go Add fleetctl get host capability to get single host with labels 2020-07-21 14:05:46 -07:00
datastore_invites_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
datastore_labels_test.go Implement manual labels 2020-07-21 14:05:46 -07:00
datastore_migrations_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
datastore_osquery_options_test.go Transition osquery options interfaces for compatibility with fleetctl (#1649) 2017-12-13 18:14:54 -05:00
datastore_packs_test.go Default scheduled query name if not specified (#1995) 2019-01-17 15:59:42 -08:00
datastore_password_reset_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
datastore_queries_test.go Refactor label membership storage 2020-07-21 14:05:46 -07:00
datastore_scheduled_queries_test.go Fix deletion of queries referenced by foreign key (#1842) 2018-06-20 17:32:43 -07:00
datastore_targets_test.go Refactor label membership storage 2020-07-21 14:05:46 -07:00
datastore_test.go Add fleetctl get host capability to get single host with labels 2020-07-21 14:05:46 -07:00
datastore_unicode_test.go Refactor label membership storage 2020-07-21 14:05:46 -07:00
datastore_users_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
mysql_test.go Extract functionName into helper 2020-07-21 14:05:46 -07:00