标签: mysql mysql-workbench limit
运行类似MySQL的查询在性能上有何区别?
select * from posts order by (upvotes - downvotes) limit 10
和
select * from posts order by (upvotes - downvotes) limit 100
我的理解是,订购者必须先订购所有帖子,这意味着限制10与限制100或1000之间的差异很小,因为这只需要选择更多的帖子?