【问题标题】:Spring Data performance issues after upgrade spring-boot-1.5.20 -> spring-boot-2.1.4升级 spring-boot-1.5.20 -> spring-boot-2.1.4 后的 Spring Data 性能问题
【发布时间】:2019-04-26 16:29:05
【问题描述】:

长期以来,我们使用“spring-boot-1.5.20.RELEASE”并决定将其更新为“spring-boot-2.1.4.RELEASE”。
之后,我们遇到了数据库性能问题。我们以为是mongodb驱动的原因,但是在redis中也有同样的问题。所有查询的执行时间增加了 5-10 倍。

有人遇到过同样的问题吗?

【问题讨论】:

    标签: java spring spring-boot query-performance


    【解决方案1】:

    从 2.0.8 升级到 2.1.4 后,我们遇到了类似的问题,但无法真正找到问题所在。所以我们决定降级到 2.1.3 看看会发生什么。 性能恢复到正常水平,所以我们决定暂时坚持下去。 这可能不是最令人满意的答案,但如果所有其他方法都失败了,您可能想试一试 2.1.3。

    编辑 由于从 1.5 到 2.1 的跳跃非常大,您可能还需要查看迁移指南以确保您没有遗漏任何内容。

    https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.0-Migration-Guide

    https://github.com/spring-projects/spring-integration/wiki/Spring-Integration-2.0-to-2.1-Migration-Guide

    【讨论】:

      猜你喜欢
      • 2021-01-18
      • 1970-01-01
      • 1970-01-01
      • 2021-10-15
      • 2018-10-07
      • 2022-12-22
      • 2019-06-23
      • 1970-01-01
      • 2015-05-17
      相关资源
      最近更新 更多