No indexes on small tables?

后端 未结 13 1023
忘掉有多难
忘掉有多难 2020-12-13 06:35

\"We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil.\" (Donald Knuth). My SQL tables are unlikely to conta

13条回答
  •  猫巷女王i
    2020-12-13 07:14

    Put indexes ONLY if you have to :)
    There are times when putting indexes can actually hurt performance, depending on what the table is used for...
    So, in other words, you would think about putting indexes on tables when it is necessary as determined by profiling the application.

提交回复
热议问题