fleet/server/datastore/mysql
Roberto Dip fbaa479d01
pre-calculate host counts for software titles (#15601)
found during the load test, this addresses a performance issue with
software titles.

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [x] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality
2023-12-13 12:48:57 -03:00
..
migrations pre-calculate host counts for software titles (#15601) 2023-12-13 12:48:57 -03:00
activities.go feat: don't remove user email from activity feed when user deleted (#14975) 2023-11-09 15:50:01 -05:00
activities_test.go add attribute to GET /activities endpoint with pagination metadata (#9279) 2023-01-18 12:57:11 +00:00
aggregated_stats.go Combine Schedules and Queries: API changes (#12778) 2023-07-24 20:17:20 -04:00
aggregated_stats_test.go Combine Schedules and Queries: API changes (#12778) 2023-07-24 20:17:20 -04:00
app_configs.go maintenance merge of main into feature branch (#14393) 2023-10-09 14:28:35 -07:00
app_configs_test.go maintenance merge of main into feature branch (#14393) 2023-10-09 14:28:35 -07:00
apple_mdm.go Fix installed_from_dep value in activity for DEP re-enrolling (#15419) 2023-12-04 17:14:16 -03:00
apple_mdm_test.go Add backend capability to look up hosts based on MDM IdP email (#15478) 2023-12-07 12:36:32 -06:00
campaigns.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
campaigns_test.go Updated factory method for creating queries in tests 2023-07-07 09:05:51 -04:00
carves.go Enabled support and validation of 'after' parameter for several endpoints (#15047) 2023-11-09 13:18:29 -06:00
carves_test.go Improve performance of the Go test suite (#2060) 2021-09-20 14:09:38 -04:00
config.go Fix double quote usage in sql query (#6707) 2022-07-20 10:10:03 -06:00
cron_stats.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
cron_stats_test.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
delete.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
delete_test.go Updated factory method for creating queries in tests 2023-07-07 09:05:51 -04:00
email_changes.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
email_changes_test.go Improve performance of the Go test suite (#2060) 2021-09-20 14:09:38 -04:00
errors.go Configure bootstrap package and end user auth for newly created teams in MDM pre-assignment flow (#13089) 2023-08-07 09:43:39 -05:00
fulltext.go Using '@' in target search causes 422 error response (#5148) 2022-04-19 09:28:49 -04:00
fulltext_test.go Using '@' in target search causes 422 error response (#5148) 2022-04-19 09:28:49 -04:00
hosts.go 15380 extend hosts api (#15421) 2023-12-12 08:40:57 -07:00
hosts_test.go 15380 extend hosts api (#15421) 2023-12-12 08:40:57 -07:00
invites.go Enabled support and validation of 'after' parameter for several endpoints (#15047) 2023-11-09 13:18:29 -06:00
invites_test.go Create errors with ctxerr, add the call to store them in redis (#2786) 2021-11-15 09:11:38 -05:00
jobs.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
jobs_test.go Allow "not_before" timestamp for worker jobs, schedule more quickly (#11512) 2023-05-03 16:25:36 -04:00
labels.go Enabled support and validation of 'after' parameter for several endpoints (#15047) 2023-11-09 13:18:29 -06:00
labels_test.go Add backend capability to look up hosts based on MDM IdP email (#15478) 2023-12-07 12:36:32 -06:00
locks.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
locks_test.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
mdm.go Unify profiles database identifier to profile_uuid for macOS and Windows profiles. (#15297) 2023-12-04 10:04:06 -05:00
mdm_test.go Unify profiles database identifier to profile_uuid for macOS and Windows profiles. (#15297) 2023-12-04 10:04:06 -05:00
microsoft_mdm.go Unify profiles database identifier to profile_uuid for macOS and Windows profiles. (#15297) 2023-12-04 10:04:06 -05:00
microsoft_mdm_test.go Add backend capability to look up hosts based on MDM IdP email (#15478) 2023-12-07 12:36:32 -06:00
migrations_test.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
mysql.go Add pagination meta to software versions endpoint (#15550) 2023-12-12 12:24:20 -06:00
mysql_test.go Enabled support and validation of 'after' parameter for several endpoints (#15047) 2023-11-09 13:18:29 -06:00
operating_system_vulnerabilities.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
operating_system_vulnerabilities_test.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
operating_systems.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
operating_systems_test.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
packs.go Enabled support and validation of 'after' parameter for several endpoints (#15047) 2023-11-09 13:18:29 -06:00
packs_test.go Changed query performance statistics to uint64 to match osquery reports. (#15505) 2023-12-11 11:29:17 -06:00
password_reset.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
password_reset_test.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
policies.go Purge policy stats in cleanup (#15318) 2023-11-28 10:03:03 -07:00
policies_test.go Purge policy stats in cleanup (#15318) 2023-11-28 10:03:03 -07:00
queries.go Enabled support and validation of 'after' parameter for several endpoints (#15047) 2023-11-09 13:18:29 -06:00
queries_test.go Prevent empty logging_type when creating and editing queries (#14575) 2023-10-16 19:33:39 -03:00
query_results.go 15381 host query report api (#15441) 2023-12-11 15:33:31 -07:00
query_results_test.go 15381 host query report api (#15441) 2023-12-11 15:33:31 -07:00
scep.go add mocks + tests and move things around (#9574) 2023-01-31 11:46:01 -03:00
scep_test.go add mocks + tests and move things around (#9574) 2023-01-31 11:46:01 -03:00
scheduled_queries.go Enabled support and validation of 'after' parameter for several endpoints (#15047) 2023-11-09 13:18:29 -06:00
scheduled_queries_test.go Changed query performance statistics to uint64 to match osquery reports. (#15505) 2023-12-11 11:29:17 -06:00
schema.sql pre-calculate host counts for software titles (#15601) 2023-12-13 12:48:57 -03:00
scripts.go 14753 windows ps1 api (#15113) 2023-11-14 09:23:51 -05:00
scripts_test.go 14753 windows ps1 api (#15113) 2023-11-14 09:23:51 -05:00
sessions.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
sessions_test.go Add read replica testing helpers and fix non-sso login bug (#4908) 2022-04-04 16:52:05 -07:00
software.go pre-calculate host counts for software titles (#15601) 2023-12-13 12:48:57 -03:00
software_test.go Add checksum hash unique column to software table. (#15598) 2023-12-12 17:51:58 -05:00
software_titles.go pre-calculate host counts for software titles (#15601) 2023-12-13 12:48:57 -03:00
software_titles_test.go pre-calculate host counts for software titles (#15601) 2023-12-13 12:48:57 -03:00
statistics.go Hackathon add metrics from Fleet servers. (#14216) 2023-11-16 10:25:19 -05:00
statistics_test.go Hackathon add metrics from Fleet servers. (#14216) 2023-11-16 10:25:19 -05:00
targets.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
targets_test.go Support matching a host in orbit enrollment using the serial number (#9612) 2023-02-28 12:55:04 -05:00
teams.go Enabled support and validation of 'after' parameter for several endpoints (#15047) 2023-11-09 13:18:29 -06:00
teams_test.go Unify profiles database identifier to profile_uuid for macOS and Windows profiles. (#15297) 2023-12-04 10:04:06 -05:00
testing_utils.go Unify profiles database identifier to profile_uuid for macOS and Windows profiles. (#15297) 2023-12-04 10:04:06 -05:00
unicode_test.go Remove skipLoadingExtras and includeCVEScores from GetHost and HostByIdentifier methods (#5874) 2022-05-25 11:30:03 -05:00
users.go Enabled support and validation of 'after' parameter for several endpoints (#15047) 2023-11-09 13:18:29 -06:00
users_test.go Add AvailableTeams to loginResponse and getUserResponse (#3585) 2022-01-13 13:57:44 -06:00
windows_updates.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
windows_updates_test.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
wstep.go Add certificate management for Microsoft MDM (WSTEP) (#12543) 2023-06-29 19:31:53 -03:00
wstep_test.go Add certificate management for Microsoft MDM (WSTEP) (#12543) 2023-06-29 19:31:53 -03:00