Benchmarking data selection methods
In this section, we will be writing our benchmarking methods that will test the performance of various data selection methods. These benchmarks will be run and analyzed in the last section of this chapter:
- Add the
ReadScalarProductADN
method:[Benchmark] public void ReadScalarProductADN() { string connectionString = SecretsManager .GetSecrets<DatabaseSettings> ("ConnectionString"); AdoDotNetData adnData = new(connectionString); string productName = adnData .ExecuteScalar<string>("SELECT TOP 1 ProductName FROM Products WHERE Product ...