Skip to content
This repository was archived by the owner on Feb 26, 2021. It is now read-only.
This repository was archived by the owner on Feb 26, 2021. It is now read-only.

DoWorkAsync uses sync methods #54

Closed
@Wraith2

Description

@Wraith2

In the AdoDriver DoSyncWork function the connection and reader are awaited but value reads still use sync Get* methods.

using (var reader = await command.ExecuteReaderAsync())
{
while (await reader.ReadAsync())
{
results.Add(
new Fortune
{
Id = reader.GetInt32(0),
Message = reader.GetString(1)
});

Is this a specific choice, and if so what is the reasoning?

Also, is there a reason that there are no mssql benches in the techempower benchmarks? i'm using this repo to investigate and improve sqlclient throughput which will be of benefit to users but they aren't going to know about it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions