fleet/server/datastore
Zach Wasserman e961cfe0c3
Batch updates to host seen time (#633)
Instead of synchronously updating the seen_time column for a host on an update, batch these updates to be written together every 1 second.

This results in a ~33% reduction in MySQL CPU usage in a local test with 4,000 simulated hosts and MySQL running in Docker.
2021-04-12 16:22:22 -07:00
..
inmem Make enrollment cooldown configurable (#418) 2021-03-08 21:26:09 -08:00
internal/appstate Improvements to built-in labels (#562) 2021-03-30 15:37:33 -07:00
mysql Batch updates to host seen time (#633) 2021-04-12 16:22:22 -07:00
s3 Add AWS S3 as file carving backend (#126) 2020-12-16 09:16:55 -08:00
datastore.go Batch updates to host seen time (#633) 2021-04-12 16:22:22 -07:00
datastore_app.go Refactor MySQL tests into package mysql (#586) 2021-04-05 11:04:53 -07:00
datastore_campaigns.go Refactor MySQL tests into package mysql (#586) 2021-04-05 11:04:53 -07:00
datastore_carves.go Refactor MySQL tests into package mysql (#586) 2021-04-05 11:04:53 -07:00
datastore_email_changes.go Refactor MySQL tests into package mysql (#586) 2021-04-05 11:04:53 -07:00
datastore_hosts.go Batch updates to host seen time (#633) 2021-04-12 16:22:22 -07:00
datastore_invites.go Refactor MySQL tests into package mysql (#586) 2021-04-05 11:04:53 -07:00
datastore_labels.go Refactor MySQL tests into package mysql (#586) 2021-04-05 11:04:53 -07:00
datastore_migrations.go Refactor MySQL tests into package mysql (#586) 2021-04-05 11:04:53 -07:00
datastore_osquery_options.go Refactor MySQL tests into package mysql (#586) 2021-04-05 11:04:53 -07:00
datastore_packs.go Refactor MySQL tests into package mysql (#586) 2021-04-05 11:04:53 -07:00
datastore_password_reset.go Refactor MySQL tests into package mysql (#586) 2021-04-05 11:04:53 -07:00
datastore_queries.go Refactor MySQL tests into package mysql (#586) 2021-04-05 11:04:53 -07:00
datastore_scheduled_queries.go Refactor MySQL tests into package mysql (#586) 2021-04-05 11:04:53 -07:00
datastore_targets.go Refactor MySQL tests into package mysql (#586) 2021-04-05 11:04:53 -07:00
datastore_unicode.go Refactor MySQL tests into package mysql (#586) 2021-04-05 11:04:53 -07:00
datastore_users.go Refactor MySQL tests into package mysql (#586) 2021-04-05 11:04:53 -07:00