mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
For #30199 The hottest path for these changes is the Orbit config getter, which runs every 30 seconds for each host. That means that for 10k enrolled hosts this will save ~333 prepares per second...which adds up. There are a few other places that use this query, but not on as hot of a path. Safe despite not using prepared statements because you can't SQL-inject a number. Existing tests cover this path well, hence no new ones. Needs manual MDM testing. # 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] 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. - [x] Input data is properly validated, `SELECT *` is avoided, SQL injection is prevented (using placeholders for values in statements)
1 line
97 B
Text
1 line
97 B
Text
* Optimized database queries for MDM enrollment checks when one host is being checked at a time.
|