fleet/server/datastore
Victor Lyuboslavsky d6695bf299
Fixed MySQL DB performance regressions (#33184)
Resolves #33147 

# Checklist for submitter

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

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files)
for more information.

## Testing

- [x] Added/updated automated tests
- [x] Where appropriate, [automated tests simulate multiple hosts and
test for host
isolation](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/reference/patterns-backend.md#unit-testing)
(updates to one hosts's records do not affect another)

- [x] QA'd all new/changed functionality manually

## Database migrations

- [x] Checked table schema to confirm autoupdate


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- Bug Fixes
- Resolved MySQL performance regressions from 4.73.0/4.73.1 affecting OS
versions and software titles views, improving load times and reducing
timeouts.

- Refactor
- Optimized OS vulnerabilities fetching by batching multiple OS versions
in a single request.
- Added a supporting database index to speed kernel-related
vulnerability queries.

- Tests
- Added comprehensive tests for multi-OS vulnerability retrieval, CVSS
enrichment, team-scoped data, and service endpoint behavior.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-19 15:35:05 -05:00
..
cached_mysql Improved performance when modifying config with a large number of yara rules (#32696) 2025-09-08 10:24:22 -05:00
failing Add custom software icons (#32652) 2025-09-05 17:31:03 -05:00
filesystem Add custom software icons (#32652) 2025-09-05 17:31:03 -05:00
mysql Fixed MySQL DB performance regressions (#33184) 2025-09-19 15:35:05 -05:00
mysqlredis Add missing platform_like during orbit enrollment (#32671) 2025-09-05 16:05:19 -03:00
redis Feat 1817 add iam auth to mysql and redis (#32488) 2025-09-04 10:08:47 -05:00
s3 Fix GCS for remaining features that use S3 (#32743) 2025-09-09 11:22:04 -03:00