reading from MySQL is faster or reading from a file is faster?

后端 未结 7 502
长发绾君心
长发绾君心 2021-01-19 14:36

HI

I got a doubt I have seen reading mysql data is slower in case of large tables...I have done lots of optimization but cant get through..

what I am thinki

7条回答
  •  没有蜡笔的小新
    2021-01-19 15:40

    As long as your tables are properly indexed and as long as you are using those indices (that's right), using a relational DB (like mysql) is going to be much faster, more robust, flexible (insert many buzzwords here), etc.

    To examine why your queries' performance does not match your expectations, you can use the explain clause with your selects (http://dev.mysql.com/doc/refman/5.1/en/explain.html).

提交回复
热议问题