« first day (859 days earlier)      last day (3459 days later) » 

2:42 AM
hi
 
 
5 hours later…
7:47 AM
morning
@vishalsharma hi
 
vgm ,hi
 
how are u ?
I have a question u can help me ?
@vishalsharma
 
fine , sure..
 
ok thanks
the problem is related aliitle with java , but I explain may be u found a solution
I select one million records from my database and I iterate over them
 
this is SQL room dear...
 
7:51 AM
in java
but I get OutOfMemory
I understood the problem
 
are you using reader or something else ?
 
just resultSet
in my opinion I will use the Cursor
Oracle cursor
but I m not sure
if the best way or no
u understand the problem ?
 
nope..
 
I cant processing ove million in java because I will get outOfMemory
The problem:
Iterate over one million of records, apply a processing on them while using the object domain model
The ‘classical’ solution:
1)Use a regular query
2)Instantiates one million of persistent capable objects
… and related references if necessary
… in the same transaction
… OutOfMemoryError
and My solution is to use cursor
 
you should never have to send 1m records from sql
 
7:56 AM
I hope u understand me
 
better to use offset thing and do on request basis
 
why? this is the requierement
no I have to get them
I make some arithmitic operation
I have to get them, otherwise that's wont be my job
 
no idea dear.. better you ask question on SO
 
ah ok thanks a lot freind
@vishalsharma :*
@Squazz hi
 

« first day (859 days earlier)      last day (3459 days later) »