Added database index
@@ -18,6 +18,7 @@ CREATE TABLE shares
CREATE INDEX IDX_SHARES_POOL_BLOCK on shares(poolid, blockheight);
CREATE INDEX IDX_SHARES_POOL_MINER on shares(poolid, miner);
CREATE INDEX IDX_SHARES_POOL_CREATED ON shares(poolid, created);
+CREATE INDEX IDX_SHARES_POOL_MINER_DIFF on shares(poolid, miner, difficulty);
CREATE TABLE blocks
(
