Skip to content

Instantly share code, notes, and snippets.

@aristus
Created January 28, 2014 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aristus/8675417 to your computer and use it in GitHub Desktop.
Save aristus/8675417 to your computer and use it in GitHub Desktop.
CREATE TABLE `analytics` (
`classifier_id` bigint unsigned,
`ts_msec` bigint unsigned,
`value` double,
PRIMARY KEY (`classifier_id`,`ts_msec`),
KEY `ts_msec` (`ts_msec`)
);
CREATE /*!90618 REFERENCE*/ TABLE `classifiers` (
`id` bigint(20) unsigned NOT NULL,
`ts_msec` bigint unsigned,
`hostname` varchar(255),
-- ... a small number of "required" fields
tags JSON not null,
PRIMARY KEY (`id`),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment