Why is my TP5 database query so slow?
3维
3维 2019-09-29 11:31:14
0
4
1841

I am currently studying the ThinkPHP5 course. I saw that Teacher Zhu’s database query speed was 0.000239s, while mine was 1.027s. When the query statements are the same, the database is configured locally. Why is this?

3维
3维

reply all(1)
在路上...

Send the sql statement to see

  • reply The simplest kind of query statement. select name, sex, salary from user where id = 1; But it takes more than 1 second. MySQL database. Is it a problem of too many databases?
    3维 author 2019-09-29 20:22:16
  • reply Too many databases means that there are many databases under 127.0.0.1. But I only query this database.
    3维 author 2019-09-29 20:24:31
  • reply You have more data, right?
    在路上... author 2019-09-30 09:32:41
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template