fleet/server/datastore
Zach Wasserman 48c413a254
Split host additional into separate table (#875)
- Move host `additional` into a separate table.
- Join when that data is needed.
- API change: `/api/v1/fleet/hosts` now returns only the requested
  `additional` columns, unless `*` is provided as the sole argument.

Background:

A customer reported that MySQL binlogs grew huge and replication lag
went way up when data was stored in the `additional` column. In this
deployment MySQL was running with ROW replication. This would cause the
entire `additional` data to be copied on each update of the host checkin
time. While switching to STATEMENT or MIXED replication would likely
mitigate the issue, this was not an option in their environment.
2021-05-26 16:24:12 -07:00
..
inmem Format and clean code (#774) 2021-05-17 10:29:50 -07:00
internal/appstate Improvements to built-in labels (#562) 2021-03-30 15:37:33 -07:00
mysql Split host additional into separate table (#875) 2021-05-26 16:24:12 -07:00
s3 Add AWS S3 as file carving backend (#126) 2020-12-16 09:16:55 -08:00
datastore.go Implement storage of scheduled query statistics (#735) 2021-05-06 21:05:09 -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 Split host additional into separate table (#875) 2021-05-26 16:24:12 -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 Implement storage of scheduled query statistics (#735) 2021-05-06 21:05:09 -07:00
datastore_software.go Initial backend software inventory implementation (#678) 2021-04-26 08:44:22 -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