mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
10 lines
315 B
SQL
10 lines
315 B
SQL
-- +up
|
|
CREATE INDEX trades_symbol ON trades(symbol);
|
|
CREATE INDEX trades_symbol_fee_currency ON trades(symbol, fee_currency, traded_at);
|
|
CREATE INDEX trades_traded_at_symbol ON trades(traded_at, symbol);
|
|
|
|
-- +down
|
|
DROP INDEX trades_symbol;
|
|
DROP INDEX trades_symbol_fee_currency;
|
|
DROP INDEX trades_traded_at_symbol;
|