刚从生产环境导了一个大表到测试环境,迫不及待的要好好玩弄一下。  

1.coun(1)

select count(1) from table_name;

条数: 567979280

时间:4:47

2.count 索引字段

select count(code) from table_name;

条数: 567979280

时间:1:33

3.count 复合索引第一个字段

select count(monthday) from table_name;

条数: 567979280

时间:1:39

4.count 复合索引非第一个字段

select count(area) from table_name;

条数: 567979280

时间:1:37

select count(type) from table_name;

条数: 567979280

时间:1:41

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-12
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
猜你喜欢
  • 2021-07-07
  • 2021-08-08
  • 2022-12-23
  • 2022-12-23
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案