From d1283738428b3f54e460a3759a50034ca18da832 Mon Sep 17 00:00:00 2001 From: c9s Date: Fri, 29 Jan 2021 18:28:07 +0800 Subject: [PATCH] add trade price quantity index --- .../20210129182704_trade_price_quantity_index.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 migrations/20210129182704_trade_price_quantity_index.sql diff --git a/migrations/20210129182704_trade_price_quantity_index.sql b/migrations/20210129182704_trade_price_quantity_index.sql new file mode 100644 index 000000000..6e771ad32 --- /dev/null +++ b/migrations/20210129182704_trade_price_quantity_index.sql @@ -0,0 +1,10 @@ +-- +up +-- +begin +CREATE INDEX trades_price_quantity ON trades (order_id,price,quantity); +-- +end + +-- +down + +-- +begin +DROP INDEX trades_price_quantity ON trades +-- +end