mirror of
https://github.com/fleetdm/fleet
synced 2026-05-22 16:39:01 +00:00
add missing comment (#21576)
This commit is contained in:
parent
de06873050
commit
4ee3a2e10a
1 changed files with 4 additions and 0 deletions
|
|
@ -1713,6 +1713,10 @@ func (ds *Datastore) bulkSetPendingMDMAppleHostProfilesDB(
|
|||
( hmap.host_uuid IS NOT NULL AND ( hmap.operation_type = ? OR hmap.operation_type IS NULL ) )
|
||||
`, fmt.Sprintf(appleMDMProfilesDesiredStateQuery, "h.uuid IN (?)", "h.uuid IN (?)", "h.uuid IN (?)"))
|
||||
|
||||
// batches of 10K hosts because h.uuid appears three times in the
|
||||
// query, and the max number of prepared statements is 65K, this was
|
||||
// good enough during a load test and gives us wiggle room if we add
|
||||
// more arguments and we forget to update the batch size.
|
||||
selectProfilesBatchSize := 10_000
|
||||
if ds.testSelectMDMProfilesBatchSize > 0 {
|
||||
selectProfilesBatchSize = ds.testSelectMDMProfilesBatchSize
|
||||
|
|
|
|||
Loading…
Reference in a new issue