Comments (7)
I have pushed up a fix. On the DatabasePlatform there is a forwardOnlyHintOnFindIterate. This is set to true on the MySqlPlatform. For creating PreparedStatements for findIterate() and findVisit() this databasePlatform hint is checked and if set creates the statement with the appropriate hints.
So out of the box this fix is specific to MySql and findIterate() or findVisit().
If you can pull/build and confirm this fixes your specific case that would be great.
from ebean.
Thanks, I'll give it a shot this week and let you know how it goes.
from ebean.
Sorry for the delay. This seems to be working well now.
I tested this in my play application, first without it there, and then with it there. Without it, the memory after using findIterate, but before iterating through the values, had sharply risen.
Updating to use 3.2.5, the memory didn't start going down until after iterating through the list provided by findIterate.
from ebean.
Right so I'll close this issue as fixed then.
from ebean.
I apologize, but I think it may still be gathering the entire resultset in memory. Using a debugger on the code, it seems that the fetchSize is getting set to 0, instead of Integer.MIN_VALUE. I think the fetchSize getting set is important to indicate to the driver that the results should be streamed.
from ebean.
Yes, I have reproduced this and it is not fixed without
pstmt.setFetchSize(Integer.MIN_VALUE);
from ebean.
Fixed in 4.0.1
from ebean.
Related Issues (20)
- Disabling batching through configuration HOT 2
- Question: Reason for transaction not being reused? HOT 10
- LimitOffsetPagedList add getTotalCount cache HOT 1
- After packaging Javalin + Ebean into a JAR file, it cannot run:jakarta.persistence.PersistenceException: hxy.dragon.model.Customer is NOT an Entity Bean registered with this server HOT 2
- Feature request: add query bean copy() method to TQRootBean interface HOT 2
- Empty OneToMany when overflowing LazyLoadBatchSize and mixed queries HOT 11
- IntelliJ IDEA 2024.1 needs updated plugin HOT 1
- ebean-gradle-plugin: ERROR [Test worker] io.ebean.internal::Error in deployment / Error trying to create the prototypeEntityBean for class HOT 14
- [12.16.3] Add support for "NoTimeZone", specifically to use no timeZone with MySql
- How to delete permanently use Qbean when use SoftDelete HOT 3
- ddl-generator: Identity for PK is always generated HOT 5
- Ebean-Data (auto generated repositories)? HOT 1
- querybean-generator incremental annotation processing not working in gradle HOT 8
- ReadOnly transactions does not honor isolation-level HOT 1
- Race condition EBean 14 HOT 7
- Q: is there a way to invalidate lazy-loaded entity bean field? HOT 17
- Sorting on a ManyToMany relationship HOT 1
- No delay on SIGTERM before shutting down future count ThreadPoolExecutor HOT 2
- Unable to use kapt to generate querybean in Maven HOT 1
- JtraTransactionManager keeps reference to already closed scope (and Transaction/connection ThreadLocal) when JtaTxnListener#afterCompletion is called by a different thread HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ebean.