6 lines
249 B
SQL
6 lines
249 B
SQL
-- 可选:加速正数查询
|
|
CREATE INDEX idx_user_point_log_amount_positive ON user_point_log (amount) WHERE amount > 0;
|
|
|
|
-- 可选:加速负数查询
|
|
CREATE INDEX idx_user_point_log_amount_negative ON user_point_log (amount) WHERE amount < 0;
|