bbgo_origin/migrations/sqlite3/20200819054742_trade_index.sql

10 lines
315 B
MySQL
Raw Permalink Normal View History

2021-02-05 06:15:28 +00:00
-- +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;