https://github.com/zlt2000/mysql-stream-query
mysql流查询
https://github.com/zlt2000/mysql-stream-query
Last synced: 10 months ago
JSON representation
mysql流查询
- Host: GitHub
- URL: https://github.com/zlt2000/mysql-stream-query
- Owner: zlt2000
- Created: 2021-01-03T15:26:24.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-04T02:29:15.000Z (over 5 years ago)
- Last Synced: 2025-04-19T13:44:09.437Z (about 1 year ago)
- Language: Java
- Size: 3.91 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## MySQL流式查询
程序访问 MySQL 数据库时,当查询出来的数据量特别大时,数据库驱动把加载到的数据全部加载到内存里,就有可能会导致内存溢出(OOM)。
其实在 MySQL 数据库中提供了流式查询,允许把符合条件的数据分批一部分一部分地加载到内存中,可以有效避免OOM
**文章地址**:[https://mp.weixin.qq.com/s/PStUk7LoHx64xacJnHp5ew](https://mp.weixin.qq.com/s/PStUk7LoHx64xacJnHp5ew)