M
michaeltorus
H
I've gont an n-Tier web app, consisting of ASP.Net, a Business Object Layer and a Data Access Layer. Up to now we've always used Datasets. But we hardly use any of the functionality provided by datasets
One of the early reasons for not using Data readers from the start was because Data readers hold a Connection open to the DB. Another reason was because run all our ASP.Net on different machines to the BOL and DAL layers
What I'd like to know is, does it really matter, when in 95% of all cases all we ever do with a dataset is bind to a data grid of somesort
If we switched this to using a data reader, what would be any problems
Also, If in some Business Layer Code, I was to retireve say 100 000 records, then loop through them and preform some kind action on each loop, whether it be make a DB call, or execture and Asynchronous process ...etc et... Would it Lock the Database records for the entire duration of the loop if it was done with a data reader, or does it only apply a lock on the row it is currrently reading
Thank
Mike
I've gont an n-Tier web app, consisting of ASP.Net, a Business Object Layer and a Data Access Layer. Up to now we've always used Datasets. But we hardly use any of the functionality provided by datasets
One of the early reasons for not using Data readers from the start was because Data readers hold a Connection open to the DB. Another reason was because run all our ASP.Net on different machines to the BOL and DAL layers
What I'd like to know is, does it really matter, when in 95% of all cases all we ever do with a dataset is bind to a data grid of somesort
If we switched this to using a data reader, what would be any problems
Also, If in some Business Layer Code, I was to retireve say 100 000 records, then loop through them and preform some kind action on each loop, whether it be make a DB call, or execture and Asynchronous process ...etc et... Would it Lock the Database records for the entire duration of the loop if it was done with a data reader, or does it only apply a lock on the row it is currrently reading
Thank
Mike