pool/sql/2016-05-15-benchmarks.sql
Tanguy Pruvot ed3cd5fb69 db/benchmarks: allow ccminer to report device stats
user password should contain "stats", made for ccminer 1.7.6+

will see to allow a special bench "test" account to allow devs to
easily test the stratum and fill benchmarks, for the moment, its
enabled while mining with the -p stats password option.
2016-05-15 18:46:16 +02:00

31 lines
852 B
SQL

-- Recent additions to add after db init (.gz)
-- mysql yaamp -p < file.sql
CREATE TABLE `benchmarks` (
`id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
`algo` varchar(16) NOT NULL,
`type` varchar(8) NOT NULL,
`khps` double NULL,
`device` varchar(80) NULL,
`vendorid` varchar(12) NULL,
`arch` varchar(8) NULL,
`power` int(5) UNSIGNED NULL,
`freq` int(8) UNSIGNED NULL,
`memf` int(8) UNSIGNED NULL,
`client` varchar(48) NULL,
`os` varchar(8) NULL,
`driver` varchar(32) NULL,
`intensity` double NULL,
`throughput` int(11) UNSIGNED NULL,
`userid` int(11) NULL,
`time` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- KEYS & Indexes
ALTER TABLE `benchmarks`
ADD KEY `bench_userid` (`userid`),
ADD INDEX `ndx_type` (`type`),
ADD INDEX `ndx_algo` (`algo`),
ADD INDEX `ndx_time` (`time` DESC);