Fule
2021-03-30 00:10:09 +08:00
你的 `mz_detail_charge` 表里有多少字段?如果远多于 `charge_price`, `charge_amount`, `caoyao_fu`, `patient_id`和`charge_status`,那么试试创建一个覆盖索引:
```
CREATE INDEX IX_mz_detail_charge_price_amount_caoyao_fu ON mz_detail_charge
(
patient_id ASC,
charge_status ASC
)
INCLUDE
(
charge_price,
charge_amount,
caoyao_fu
)
WITH
(
PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON
)
```