SQLServer数据库优化
摘要:当遇到如下250的SQL时,又没办法改SQL,只能优化数据库的情况下。 索引pid,no,equipmentCode,和索引pid,有着巨大的差异。在索引中包含order by 的列,将极大提升速度。 ROW_NUMBER() OVER (PARTITION BY pid ORDER BY no A
阅读全文
posted @ 2022-11-06 12:04
posted @ 2022-11-06 12:04