[JAVA-418] GridFSDBFile.writeTo( OutputStream out ) should not use findOne Created: 18/Aug/11 Updated: 19/Oct/16 Resolved: 19/Oct/16 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Frank Wen | Assignee: | Antoine Girbal |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
I think it's better to get all the chunks at once, not use findOne(). By this way, we can get better performance by using more memory. |
| Comments |
| Comment by Scott Hernandez (Inactive) [ 18/Aug/11 ] |
|
This will use more memory; the reason findOne is currently used is to keep memory use down and stream data one chunk at a time. |