mirror of
https://github.com/fleetdm/fleet
synced 2026-05-17 05:58:40 +00:00
#18838 1. During software ingestion, switched to updating `last_updated_at` as a batch for 1 host. 2. Removed `DELETE FROM software` statement that ran for every host update (where software was deleted). This is only done now during the vulnerability job. # 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://fleetdm.com/docs/contributing/committing-changes#changes-files) for more information. - [x] Added/updated tests - [x] Manual QA for all new/changed functionality
4 lines
495 B
Text
4 lines
495 B
Text
MySQL query optimizations:
|
|
- During software ingestion, switched to updating last_opened_at as a batch (for 1 host).
|
|
- Removed DELETE FROM software statement that ran for every host update (when software was deleted). The cleanup of unused software is now only done during the vulnerability job.
|
|
- `/api/v1/fleet/software/versions/:id` endpoint can return software even if it has been recently deleted from all hosts. During hourly cleanup, this software item will be removed from the database.
|