xsong123 commented on issue #15000:
URL: 
https://github.com/apache/shardingsphere/issues/15000#issuecomment-1019397382


   > If you use mysql database, you can try 
`preparedStatement.setFetchSize(Integer.MIN_VALUE);` to open stream query.
   
   i have used `preparedStatement.setFetchSize(Integer.MIN_VALUE);` , but don't 
work.
   trace source, then found:
   ConnectionMode connectionMode = maxConnectionsSizePerQuery < sqlUnits.size() 
? ConnectionMode.CONNECTION_STRICTLY : ConnectionMode.MEMORY_STRICTLY;
   
   `maxConnectionsSizePerQuery` and `sqlUnits.size()`  affect connectionMode .
   
![image](https://user-images.githubusercontent.com/19642484/150661940-884fc42c-bb07-4e97-9629-d1d15015fb8d.png)
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to