J
John A Grandy
I'm trying to get a decent idea of the relative performance of three types
of implementations of data-access classes in ASP.NET 2.0.
I believe this boils down to a more basic question regarding the cost of
object instantiation in .NET 2.0. It becomes especially relevant to web-app
data-access classes due to the vast variety of db queries page requests may
require. Caching is not appropriate for most of these datasets, and so many
queries must be performed, implying many data-access object instantiations.
Types of implementations :
1. non-singleton classes with non-static methods where all methods involved
in processing a page request must instantiate various data-access class
objects (possibly multiple times)
2. singleton classes that implement a getInstance() method that provides a
pre-existing instance of the class if one exists; if an instance does not
exist, getInstance() instantiates a class object and assigns it to an
internal static reference
3. classes where all data-provision methods in the interface are implemented
as static methods
In the course of writing a scalable ASP.NET 2.0 web-app, has anyone done any
benchmarking (either formal or informal) ... or has a general sense of the
relative peformance of these 3 implementations ?
Does anyone know of any whitepapers or other studies that might be available
( either MS or external ) ?
of implementations of data-access classes in ASP.NET 2.0.
I believe this boils down to a more basic question regarding the cost of
object instantiation in .NET 2.0. It becomes especially relevant to web-app
data-access classes due to the vast variety of db queries page requests may
require. Caching is not appropriate for most of these datasets, and so many
queries must be performed, implying many data-access object instantiations.
Types of implementations :
1. non-singleton classes with non-static methods where all methods involved
in processing a page request must instantiate various data-access class
objects (possibly multiple times)
2. singleton classes that implement a getInstance() method that provides a
pre-existing instance of the class if one exists; if an instance does not
exist, getInstance() instantiates a class object and assigns it to an
internal static reference
3. classes where all data-provision methods in the interface are implemented
as static methods
In the course of writing a scalable ASP.NET 2.0 web-app, has anyone done any
benchmarking (either formal or informal) ... or has a general sense of the
relative peformance of these 3 implementations ?
Does anyone know of any whitepapers or other studies that might be available
( either MS or external ) ?