Open zwinnerman-fleetdm opened 2 years ago
@zwinnerman-fleetdm I may be incorrect, but this looks more like an improvement instead of a bug. If this is a bug we can change it back over.
Could you please attach a goal to the ticket so it can be tracked?
Should be updated @xpkoala
Similar to #4064, the query
SELECT * FROM distributed_query_campaigns WHERE id = ?
is prepared and run once per endpoint per live query. This takes ~1-1.5ms per host per live query since the statement is not prepared ahead of time.Goal:
To have the query mentioned above use the same pattern as in #4064 so that it is prepared beforehand instead of just in time.