Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1064 from oliverw/oliverw
Browse files Browse the repository at this point in the history
Drop indexes not compatible with timestamptz
  • Loading branch information
Oliver Weichhold authored Jan 3, 2022
2 parents 010063b + 06ad4b3 commit f5a7f1a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Miningcore/Persistence/Postgres/Scripts/createdb.sql
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ CREATE TABLE poolstats
);

CREATE INDEX IDX_POOLSTATS_POOL_CREATED on poolstats(poolid, created);
CREATE INDEX IDX_POOLSTATS_POOL_CREATED_HOUR on poolstats(poolid, date_trunc('hour',created));

CREATE TABLE minerstats
(
Expand All @@ -120,6 +119,4 @@ CREATE TABLE minerstats

CREATE INDEX IDX_MINERSTATS_POOL_CREATED on minerstats(poolid, created);
CREATE INDEX IDX_MINERSTATS_POOL_MINER_CREATED on minerstats(poolid, miner, created);
CREATE INDEX IDX_MINERSTATS_POOL_MINER_CREATED_HOUR on minerstats(poolid, miner, date_trunc('hour',created));
CREATE INDEX IDX_MINERSTATS_POOL_MINER_CREATED_DAY on minerstats(poolid, miner, date_trunc('day',created));
CREATE INDEX IDX_MINERSTATS_POOL_MINER_WORKER_CREATED_HASHRATE on minerstats(poolid,miner,worker,created desc,hashrate);

0 comments on commit f5a7f1a

Please sign in to comment.