Skip to content

Commit

Permalink
Update 2023-09-12-分页性能优化.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shihai1991 authored Oct 23, 2024
1 parent 2c262a7 commit 2a85c42
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion _posts/2023-09-12-分页性能优化.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ time: '2023.09.12 20:48:00'
# 面临的问题
单个数据库有20+个分表,每个分表有2w+条记录,直接用Mybatis和Shardingsphere查询所有表中数据,服务就会长期在查询数据库,结果耗时大概需要30分钟+。
导致这个现象的原因我估计是数据层通过流式计算和归并排序算法操作防止占用大量内存却导致时间开销增加了。
另外,对同一数据源的多条相同执行SQL会进行

# 技术手段
## shardingSphere
Expand Down

0 comments on commit 2a85c42

Please sign in to comment.