Skip to content

Infrastructure: Trace when query is done. This is needed in order to get SelectRows statistics. #7105

Closed

Description

@fitzchak

In order to get the SelectRows from SqlStatistics we need to add this trace statement, since "System.Data.SqlClient.WriteCommandAfter" tracing is not enough, as this is before the reader is reading the results.
This let us in Entity Framework Profiler report the results for the query.

Activity

  1. added a commit that references this issue on Nov 23, 2016
  2. fitzchak commented on Nov 24, 2016

    @fitzchak
    Author
  3. added this to the milestone on Nov 28, 2016
  4. added 2 commits that reference this issue on Nov 29, 2016
  5. fitzchak commented on Mar 27, 2017

    @fitzchak
    Author

    Can this get into next release of v1?

  6. ajcvickers commented on Mar 27, 2017

    @ajcvickers
    Contributor

    Marking for re-triage to consider putting it in patch release.

  7. removed this from the 2.0.0 milestone on Mar 27, 2017
  8. ajcvickers commented on Mar 31, 2017

    @ajcvickers
    Contributor

    @fitzchak We discussed this but unfortunately we don't think it meets the bar for a patch release, especially because it contains a binary-compat breaking change. Is there any way you can work around the issue you have without taking the change?

  9. fitzchak commented on Apr 2, 2017

    @fitzchak
    Author

    @ajcvickers We cannot work around this.
    What is the binary compat breaking change? Isn't it just adding more logs?

  10. ajcvickers commented on Apr 4, 2017

    @ajcvickers
    Contributor

    @fitzchak The PR changes the signature for the RelationalDataReader constructor. We might be able to make the change in a non-breaking way, but to justify it going into a patch release we will need some details as to exactly what is not working so we can get approval.

  11. ajcvickers commented on Apr 12, 2017

    @ajcvickers
    Contributor

    EF Team Triage: Closing this issue as the requested additional details have not been provided and we have been unable to reproduce it.

    BTW this is a canned response and may have info or details that do not directly apply to this particular issue. While we'd like to spend the time to uniquely address every incoming issue, we get a lot traffic on the EF projects and that is not practical. To ensure we maximize the time we have to work on fixing bugs, implementing new features, etc. we use canned responses for common triage decisions.

  12. added this to the 2.0.0 milestone on Apr 12, 2017
  13. changed the title [-]Trace when query is done. This is needed in order to get SelectRows statistics.[/-] [+]Infrastructure: Trace when query is done. This is needed in order to get SelectRows statistics.[/+] on May 9, 2017
  14. fitzchak commented on May 22, 2017

    @fitzchak
    Author
  15. divega commented on May 22, 2017

    @divega
    Contributor

    @fitzchak to be clear, your PR made it into 2.0.0-preview1. It just did not make into a patch for the 1.x versions (that is what the last few comments are about). Are you getting many customer requests for this functionality in 1.x versions?

  16. fitzchak commented on May 23, 2017

    @fitzchak
    Author

    @divega Hi, yes. We have many customer requests to use the profiler with the current version of EntityFrameworkCore. The profiler is working well, but do not show the row count and duration for the statements (see attachment image) and we get many requests to fix this. This PR should fix this.

    image

  17. modified the milestones: , 2.0.0 on Oct 15, 2022
  18. 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

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions