|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Handling very huge dataHi All
Wish all of u Happy New Year I am developing a application where in I retrieve data from Database which can go up millions records, do some processing on that and update the same in single transaction, now with limited RAM say 500MB how should I handle this data (I know one solution might be paging) so that my ASP.NET process does not fall short of memory, right now it is giving me error as "aspnet_wp.exe (PID: 596) was recycled because memory consumption exceeded the 305 MB (60 percent of available RAM). " Regards Makarand Did you consider using a stored procedure for processing the data?
-- Show quoteHide quoteMiha Markic [MVP C#] - RightHand .NET consulting & development SLODUG - Slovene Developer Users Group www.rthand.com "Makarand Keer" <MakarandK***@discussions.microsoft.com> wrote in message news:30EE4383-9550-4070-AFF3-7446F03CF56F@microsoft.com... > Hi All > > Wish all of u Happy New Year > > I am developing a application where in I retrieve data from Database which > can go up millions records, do some processing on that and update the same > in > single transaction, > now with limited RAM say 500MB how should I handle this data (I know one > solution might be paging) so that my ASP.NET process does not fall short > of > memory, right now it is giving me error as "aspnet_wp.exe (PID: 596) was > recycled because memory consumption exceeded the 305 MB (60 percent of > available RAM). " > > Regards > Makarand Miha
Thanx for prompt reply, Thing is I get the data from database server, add feed this data to MS RuleEngine for applying Business Rules and after that I take same data and update it in database. So I don't c any scope of doing all these things in database. Hope this time I am more clear on my problem Makarand Show quoteHide quote "Miha Markic [MVP C#]" wrote: > Did you consider using a stored procedure for processing the data? > > -- > Miha Markic [MVP C#] - RightHand .NET consulting & development > SLODUG - Slovene Developer Users Group > www.rthand.com > > "Makarand Keer" <MakarandK***@discussions.microsoft.com> wrote in message > news:30EE4383-9550-4070-AFF3-7446F03CF56F@microsoft.com... > > Hi All > > > > Wish all of u Happy New Year > > > > I am developing a application where in I retrieve data from Database which > > can go up millions records, do some processing on that and update the same > > in > > single transaction, > > now with limited RAM say 500MB how should I handle this data (I know one > > solution might be paging) so that my ASP.NET process does not fall short > > of > > memory, right now it is giving me error as "aspnet_wp.exe (PID: 596) was > > recycled because memory consumption exceeded the 305 MB (60 percent of > > available RAM). " > > > > Regards > > Makarand > > > This much data is not a good candidate for putting in a dataset or the likes
of dataset. Keep it in the database for processing if you can. What is the compelling reason that you must pull it out of the db to work on so much data? - Sahil Malik http://dotnetjunkies.com/weblog/sahilmalik Show quoteHide quote "Makarand Keer" <MakarandK***@discussions.microsoft.com> wrote in message news:30EE4383-9550-4070-AFF3-7446F03CF56F@microsoft.com... > Hi All > > Wish all of u Happy New Year > > I am developing a application where in I retrieve data from Database which > can go up millions records, do some processing on that and update the same in > single transaction, > now with limited RAM say 500MB how should I handle this data (I know one > solution might be paging) so that my ASP.NET process does not fall short of > memory, right now it is giving me error as "aspnet_wp.exe (PID: 596) was > recycled because memory consumption exceeded the 305 MB (60 percent of > available RAM). " > > Regards > Makarand Sahil
Thanx for prompt reply, Thing is I get the data from database server, add feed this data to MS RuleEngine for applying Business Rules and after that I take same data and update it in database. So I don't c any scope of doing all these things in database. Hope this time I am more clear on my problem Makarand Show quoteHide quote "Sahil Malik" wrote: > This much data is not a good candidate for putting in a dataset or the likes > of dataset. Keep it in the database for processing if you can. > What is the compelling reason that you must pull it out of the db to work on > so much data? > > - Sahil Malik > http://dotnetjunkies.com/weblog/sahilmalik > > > > "Makarand Keer" <MakarandK***@discussions.microsoft.com> wrote in message > news:30EE4383-9550-4070-AFF3-7446F03CF56F@microsoft.com... > > Hi All > > > > Wish all of u Happy New Year > > > > I am developing a application where in I retrieve data from Database which > > can go up millions records, do some processing on that and update the same > in > > single transaction, > > now with limited RAM say 500MB how should I handle this data (I know one > > solution might be paging) so that my ASP.NET process does not fall short > of > > memory, right now it is giving me error as "aspnet_wp.exe (PID: 596) was > > recycled because memory consumption exceeded the 305 MB (60 percent of > > available RAM). " > > > > Regards > > Makarand > > > I'd recommend getting peices of the data rather than millions of rows
together. Maybe in another 4-5 years when we have terabytes of RAM and 64 bit CPUs my suggestion will change, but today this is what I'd recommend. - Sahil Malik http://dotnetjunkies.com/weblog/sahilmalik Show quoteHide quote "Makarand Keer" <MakarandK***@discussions.microsoft.com> wrote in message news:BF23980B-0C35-4C6D-8496-426C5DDF051F@microsoft.com... > Sahil > Thanx for prompt reply, > Thing is I get the data from database server, add feed this data to MS > RuleEngine for applying Business Rules and after that I take same data and > update it in database. > So I don't c any scope of doing all these things in database. > Hope this time I am more clear on my problem > > Makarand > > "Sahil Malik" wrote: > > > This much data is not a good candidate for putting in a dataset or the likes > > of dataset. Keep it in the database for processing if you can. > > What is the compelling reason that you must pull it out of the db to work on > > so much data? > > > > - Sahil Malik > > http://dotnetjunkies.com/weblog/sahilmalik > > > > > > > > "Makarand Keer" <MakarandK***@discussions.microsoft.com> wrote in message > > news:30EE4383-9550-4070-AFF3-7446F03CF56F@microsoft.com... > > > Hi All > > > > > > Wish all of u Happy New Year > > > > > > I am developing a application where in I retrieve data from Database which > > > can go up millions records, do some processing on that and update the same > > in > > > single transaction, > > > now with limited RAM say 500MB how should I handle this data (I know one > > > solution might be paging) so that my ASP.NET process does not fall short > > of > > > memory, right now it is giving me error as "aspnet_wp.exe (PID: 596) was > > > recycled because memory consumption exceeded the 305 MB (60 percent of > > > available RAM). " > > > > > > Regards > > > Makarand > > > > > > I would try to do this in the DB using SQL...
Patrice -- Show quoteHide quote"Makarand Keer" <MakarandK***@discussions.microsoft.com> a écrit dans le message de news:30EE4383-9550-4070-AFF3-7446F03CF56F@microsoft.com... > Hi All > > Wish all of u Happy New Year > > I am developing a application where in I retrieve data from Database which > can go up millions records, do some processing on that and update the same in > single transaction, > now with limited RAM say 500MB how should I handle this data (I know one > solution might be paging) so that my ASP.NET process does not fall short of > memory, right now it is giving me error as "aspnet_wp.exe (PID: 596) was > recycled because memory consumption exceeded the 305 MB (60 percent of > available RAM). " > > Regards > Makarand Makarand,
It sounds to me like you have to real options here. 1) Chunk thru the data. I would choose this if there is some specific business logic that you cannot perform directly on the database layer. 2) Process the Data in the Database. I would choose this if you can perform the logic on the database layer. If you can go this route it will probably be the most efficient. HTH, -eric Makarand Keer wrote: Show quoteHide quote > Hi All > > Wish all of u Happy New Year > > I am developing a application where in I retrieve data from Database which > can go up millions records, do some processing on that and update the same in > single transaction, > now with limited RAM say 500MB how should I handle this data (I know one > solution might be paging) so that my ASP.NET process does not fall short of > memory, right now it is giving me error as "aspnet_wp.exe (PID: 596) was > recycled because memory consumption exceeded the 305 MB (60 percent of > available RAM). " > > Regards > Makarand Hi,
try using API server side cursors that would fetch you data in batches, so that your app. will not block for that period, which greatly improves user experience. regards Joyjit Show quoteHide quote "Makarand Keer" <MakarandK***@discussions.microsoft.com> wrote in message news:30EE4383-9550-4070-AFF3-7446F03CF56F@microsoft.com... > Hi All > > Wish all of u Happy New Year > > I am developing a application where in I retrieve data from Database which > can go up millions records, do some processing on that and update the same in > single transaction, > now with limited RAM say 500MB how should I handle this data (I know one > solution might be paging) so that my ASP.NET process does not fall short of > memory, right now it is giving me error as "aspnet_wp.exe (PID: 596) was > recycled because memory consumption exceeded the 305 MB (60 percent of > available RAM). " > > Regards > Makarand
Other interesting topics
DBnull, Date and DataAdapter
Constraint violated but no exception thrown Best way to process millions of records Thread was being aborted Errors Problem with Update Adapter Really need some help on this typed dataset and sort order on save How can I read a list of files from a folder into a DataTable? MDAC and interop.adodb Getting off the ground with orace parameters |
|||||||||||||||||||||||