第一种
SELECT * FROM log_operation WHERE i_id>
1000limit 100;
Time: 0.016s
第二种
SELECT * FROM log_operation limit 100 OFFSET
1000;
Time: 0.003s
第一种
SELECT * FROM log_operation WHERE i_id>
10000limit 100;
Time: 0.004s
第二种
SELECT * FROM log_operation limit 100 OFFSET
10000;
Time: 0.508s
第一种:
SELECT * FROM log_operation WHERE i_id>
100000limit 100;
Time: 0.003s
第二种:
SELECT * FROM log_operation limit 100 OFFSET 100000;
Time: 2.377s
SELECT * FROM log_operation WHERE c_act='登录' limit 100 OFFSET 100000;
Time: 3.649s
第一种:
SELECT * FROM log_operation WHERE i_id>
1000000limit 100;
Time: 0.004s
第二种:
SELECT * FROM log_operation limit 100 OFFSET
1000000;
Time: 14.403s
第一种:
SELECT * FROM log_operation WHERE i_id>
10000000limit 100;
Time: 0.057s
第二种:
失去等待出来结果的耐心!!!