java - mybatis 查询慢 然后结果就出不来了,一般超过3s就不行了
高洛峰
高洛峰 2017-04-18 10:13:55
0
2
736
高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all (2)
刘奇

First extract the sql statement and run it directly in the database to see if the sql statement query is slow.
If so, you need to optimize the sql and establish relevant indexes;
If not, check the number of connections configuration of tomcat;

    大家讲道理

    LZ, are you sure whether it is caused by slow SQL query or your JAVA business code?

    Use EXPLAIN analysis for slow query SQL analysis
    Business code can be tracked by adding log printing date and other methods

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!