bbgo_origin/migrations/mysql/20240918132534_add_position_index.sql

11 lines
166 B
MySQL
Raw Permalink Normal View History

-- +up
-- +begin
CREATE INDEX positions_traded_at ON positions (traded_at, profit);
-- +end
-- +down
-- +begin
DROP INDEX positions_traded_at ON positions;
-- +end