Hello ,
In my application when i try to fill dataset's table with huge amount of records (2 Lakh Approx.) it gives error of outofmemory Exception .
I think it is Due to increasing Virtual memory size (Commit size is increasing in Task Manager) .
So how to prevent this memory link ?
Thanks in Advance .
Regards,
Yogesh
Loading

Shirsendu NandiPosted May 6, 2011, 7:10 AM
try abcPosted May 6, 2011, 5:49 AM
Thanks For Answers. But I have already optimized Query with Required Fields
& Required Where condition so it required 50000- 2 Lakh Records in dataset at
a time .
I am working on Windows Application & in that for Crystal Report , i hv used
dataset . to fill data for report in Dataset , it gives memory error .
What i can do ?
Also except for above problem , due to heavy database of my s/w in Client DB ,
I have to fetch atleast 25000 - 1 lakh records everywhere out of 6-7 Lakh Records.
So Is there any way that we can reduce Virtual memory ??
Regards,
Yogesh
S/W Developer
VulpesPosted May 6, 2011, 5:14 AM
One thing I've noticed is that people often store images in their databases rather than a path to where the image is stored on disk. If this is the case with your database, then the memory usage for 200,000 records is going to be astronomic!
Sam HobbsPosted May 6, 2011, 12:11 AM
Also note that 64-bit Windows will allow you to use much more main memory.
Mahesh ChandPosted May 5, 2011, 1:22 PM
Read paging concepts in ASP.NET. Search this website for the same topic.
You can also use SELECT..TOP SQL statement to get, say top 1000 records.
Shirsendu NandiPosted May 5, 2011, 12:45 PM
VulpesPosted May 5, 2011, 10:19 AM