is SELECT COUNT(*) expensive?

后端 未结 7 1725
小蘑菇
小蘑菇 2021-01-13 00:16

Do you think it\'s a good idea to count entries from a really big table (like 50K rows) on each page load?

SELECT COUNT(*) FROM table

Right

相关标签:
7条回答
  • 2021-01-13 01:09

    As you have said this page is pvt and not public I don't see any problem with that query and 50k records, shouldn't have any real impact on page load times and server load.

    0 讨论(0)
提交回复
热议问题