Victor Lyuboslavsky
43552b8dac
Reworked Windows profile delete batching ( #44047 )
...
<!-- Add the related story/sub-task/bug number, like Resolves #123 , or
remove if NA -->
**Related issue:** Resolves #42545
This rework does not significantly improve the worst case performance,
but it does improve some cases (like lower number of hosts with a lot of
profiles).
# 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`.
## 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
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Performance Improvements**
* Improved batch deletion for Windows MDM configuration profiles to
handle very large-scale cleanup with fewer database updates.
* Replaced per-profile update loops with multi-profile batched updates
to reduce update overhead and improve determinism.
* **Tests**
* Added tests validating multi-profile batch delete behavior and
ensuring each queued delete command is correctly targeted.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-04-24 11:42:59 -05:00
..
2026-04-01 15:00:08 -03:00
2026-03-25 10:07:53 +01:00
2026-04-02 15:56:31 -05:00
2026-03-27 09:04:14 -03:00
2026-03-16 16:17:47 -05:00
2026-03-27 12:15:35 -03:00
2026-03-26 19:06:51 -05:00
2026-03-26 18:25:54 -05:00
2026-04-23 16:44:09 -04:00
2026-04-14 09:39:26 -05:00
2026-03-19 14:58:10 -05:00
2026-04-02 13:35:07 -03:00
2026-04-02 06:16:55 -04:00
2026-03-19 22:01:59 -05:00
2026-04-23 16:17:34 -04:00
2026-04-23 12:56:38 -04:00
2026-03-23 10:31:12 -05:00
2026-03-16 15:12:25 -04:00
2026-03-18 12:20:23 -04:00
2026-04-07 09:51:35 -03:00
2026-03-30 11:25:46 -05:00
2026-03-17 12:59:17 -03:00
2026-03-19 11:14:14 -05:00
2026-04-01 13:49:24 -05:00
2026-03-26 13:06:29 -07:00
2026-03-23 09:04:55 -05:00
2026-03-16 15:51:28 -05:00
2026-03-17 12:33:39 -03:00
2026-04-22 14:22:33 -04:00
2026-04-08 17:05:25 -05:00
2026-04-06 17:39:59 -05:00
2026-03-24 10:01:54 -04:00
2026-04-02 16:42:51 -04:00
2026-04-06 12:36:47 -04:00
2026-03-20 15:37:42 -04:00
2026-03-17 12:35:36 -03:00
2026-03-30 21:33:21 -07:00
2026-03-16 12:24:31 -05:00
2026-04-03 09:44:55 -06:00
2026-04-07 15:23:59 -05:00
2026-03-26 15:52:28 -04:00
2026-03-17 07:22:23 -05:00
2026-03-20 10:56:54 +01:00
2026-04-06 09:59:32 -05:00
2026-03-21 10:03:57 -05:00
2026-04-03 15:59:32 -05:00
2026-04-01 14:22:10 -05:00
2026-03-31 09:11:51 -05:00
2026-04-09 12:46:11 -05:00
2026-04-22 13:05:09 -06:00
2026-04-21 08:31:30 -06:00
2026-04-01 17:09:20 -06:00
2026-04-09 16:30:15 -05:00
2026-03-17 12:35:25 -03:00
2026-03-27 16:54:22 -04:00
2026-04-02 15:38:58 -04:00
2026-04-02 17:22:14 -04:00
2026-04-23 16:01:09 +01:00
2026-03-19 15:37:22 -04:00
2026-04-22 12:00:58 -04:00
2026-03-31 09:35:37 -04:00
2026-04-21 17:54:05 -06:00
2026-04-13 14:37:05 -06:00
2026-03-18 13:27:53 -04:00
2026-04-13 12:17:23 -05:00
2026-04-03 09:58:03 -05:00
2026-04-08 16:30:52 -05:00
2026-03-30 10:13:03 -04:00
2026-03-18 11:03:48 -04:00
2026-03-26 07:04:18 -04:00
2026-03-23 17:01:52 -04:00
2026-04-23 13:57:41 +01:00
2026-03-20 10:35:56 -05:00
2026-03-30 08:56:21 -05:00
2026-03-20 10:30:52 -05:00
2026-03-24 17:53:19 -04:00
2026-04-01 12:25:23 -06:00
2026-03-24 17:48:02 -05:00
2026-03-26 12:12:41 -06:00
2026-03-20 10:36:14 -05:00
2026-04-23 16:44:23 +01:00
2026-03-30 15:59:19 -04:00
2026-04-06 11:51:39 -05:00
2026-03-16 16:09:43 -05:00
2026-04-10 09:43:42 -04:00
2026-03-17 15:04:33 -04:00
2026-03-25 10:32:41 -04:00
2026-03-18 13:59:28 -05:00
2026-03-24 10:45:34 -03:00
2026-03-28 15:35:45 -05:00
2026-04-07 15:23:37 -05:00
2026-03-23 10:33:48 -03:00
2026-04-22 17:53:59 -05:00
2026-03-26 11:29:20 -05:00
2026-03-30 09:51:12 -05:00
2026-03-25 15:10:40 -05:00
2026-04-08 13:28:06 -03:00
2026-04-07 16:26:09 -05:00
2026-04-20 09:23:55 -05:00
2026-03-27 10:13:59 -03:00
2026-04-21 16:01:51 -05:00
2026-04-24 10:46:47 -05:00
2026-04-23 13:35:22 -05:00
2026-04-24 11:42:59 -05:00
2026-04-21 09:09:37 -04:00
2026-03-31 16:33:55 -04:00
2026-04-02 14:59:09 -05:00
2026-04-14 13:01:33 -05:00
2026-04-09 17:36:18 -05:00
2026-04-02 11:02:50 -04:00
2026-04-03 07:13:56 -05:00
2026-04-01 16:25:57 -05:00
2026-04-06 10:11:07 -05:00
2026-04-20 09:18:02 -04:00
2026-04-07 10:40:39 -04:00
2026-04-16 11:11:39 -04:00
2026-04-10 11:12:38 -04:00
2026-04-21 07:11:33 -04:00
2026-04-07 08:13:18 -03:00
2026-04-07 15:58:29 -04:00
2026-04-06 08:50:18 -05:00
2026-04-22 11:53:31 -05:00
2026-04-07 14:31:07 -04:00
2026-04-07 13:46:30 -03:00
2026-04-20 16:56:23 -04:00
2026-04-07 15:59:48 -04:00
2026-04-20 09:14:52 -04:00
2026-04-24 09:40:52 -06:00
2026-04-17 14:02:05 -05:00
2026-04-14 09:31:34 -04:00
2026-04-14 09:30:26 -04:00
2026-04-10 21:42:14 -04:00
2026-04-21 10:53:46 -05:00
2026-04-22 13:48:56 -04:00
2026-04-23 19:36:11 -05:00
2026-04-22 15:17:48 -06:00
2026-04-21 16:52:36 -05:00
2026-04-23 12:43:23 -05:00
2026-04-23 10:34:12 -06:00
2026-04-23 11:20:27 -05:00
2026-04-22 14:30:43 -05:00
2026-04-06 10:58:41 -03:00
2026-03-25 16:02:54 -05:00
2026-03-20 14:24:29 -05:00
2026-04-08 17:43:14 -05:00
2026-04-09 08:41:48 -05:00
2026-04-07 07:44:52 -05:00
2026-04-09 18:33:03 -04:00
2026-03-19 22:01:44 -05:00
2026-04-09 08:28:59 -05:00
2026-04-07 12:01:26 -05:00
2026-03-17 10:20:09 -05:00
2026-03-19 07:01:00 -05:00
2026-04-20 13:40:57 -03:00