升级 spring-boot-1.5.20 后的 Spring Data 性能问题 ->spring-boot-2.1.4 [英] Spring Data performance issues after upgrade spring-boot-1.5.20 -> spring-boot-2.1.4

查看:70
本文介绍了升级 spring-boot-1.5.20 后的 Spring Data 性能问题 ->spring-boot-2.1.4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

For a long time we used "spring-boot-1.5.20.RELEASE" and decided to update it to "spring-boot-2.1.4.RELEASE".
After that we've faced databases performance issues. We thought that it's because of mongodb driver, but in redis there are the same issues. Execution time for all queries was increased up to 5-10 times.

有人遇到同样的问题吗?

Did anybody meet the same problem?

推荐答案

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

We faced a similar issue after upgrading from 2.0.8 to 2.1.4 but couldn't really find the problem. So we decided to downgrade to 2.1.3 and see what happens. The performance returned back to normal levels, so we decided to stick to it for the time being. This might not be the most satisfying answer, but if all else fails you might want to give 2.1.3 a shot.

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

EDIT Since the jump from 1.5 to 2.1 is quite a big one, you might also want to check out the migration guides to make sure you didn't miss anything.

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

这篇关于升级 spring-boot-1.5.20 后的 Spring Data 性能问题 ->spring-boot-2.1.4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆