D
db.guru
Hello,
I was wondering what the best practices are as far as how many
connections one should use for a data-driven app. Here's my situation:
I have a business object that I load data into, this object also has 3
collections which I also load data into (via their own method). Right
now each method has its own connection that uses a datareader to add
the items to the collection. I can't use the same connection between
the parent object and my 3 collections because datareaders require
their own connection. Is it ok to open 4 seperate connections just to
load one object of data?
What is the best practice? Anybody have any links where this situation
is discussed? Any help would be appreciated. Thanks!
I was wondering what the best practices are as far as how many
connections one should use for a data-driven app. Here's my situation:
I have a business object that I load data into, this object also has 3
collections which I also load data into (via their own method). Right
now each method has its own connection that uses a datareader to add
the items to the collection. I can't use the same connection between
the parent object and my 3 collections because datareaders require
their own connection. Is it ok to open 4 seperate connections just to
load one object of data?
What is the best practice? Anybody have any links where this situation
is discussed? Any help would be appreciated. Thanks!