Skip to content

PERF: Omit SELECT @@ROWCOUNT; when we are executing just a single statement #7037

Description

@anpete

Should be able to use ExecuteCommand and check rowsAffected instead of ExecuteReader.

Activity

  1. added this to the milestone on Nov 18, 2016
  2. modified the milestones: Backlog, 2.0.0 on Apr 17, 2017
  3. ajcvickers commented on Apr 17, 2017

    @ajcvickers
    Contributor

    If we decide to do this, let's check it will make an actual perf difference.

  4. roji commented on Oct 19, 2022

    @roji
    Member

    Shouldn't make any meaningful difference, but we can confirm.

  5. added theissue type on Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions