Skip to content
This repository was archived by the owner on Nov 1, 2018. It is now read-only.
This repository was archived by the owner on Nov 1, 2018. It is now read-only.

Allow CommandBehavior.SingleResult and SingleRow #220

Closed

Description

@NickCraver

We're getting reports in Dapper of breaks after recent optimizations for single-result queries such as this: DapperLib/Dapper#441

While in this case it's CommandBehavior.SingleResult, all behaviors are fair game for ADO.Net Providers. But let's take it one at a time - can Sqlite either ignore this optimization or support it?

Related issue: #114

Activity

  1. divega commented on Jan 26, 2016

    @divega

    We should already be ignoring SequentialAccess. I agree we should ignore more of these behaviors as long as they are just hints (and assuming we won't be actually taking advantage of them).

  2. NickCraver commented on Jan 27, 2016

    @NickCraver
    ContributorAuthor

    PR #221 open to ignore the behavior for now - no harm in ignoring for now and adding actual optimizations later.

  3. mgravell commented on Jan 27, 2016

    @mgravell

    after recent optimizations for single-row queries

    SingleResult is actually "single grid"; IMO you should also ignore SingleRow, which is a similar hint that can be safely ignored if the library doesn't choose to exploit it.

  4. divega commented on Jan 27, 2016

    @divega

    👍 SingleRow is a hint that providers are not required to look at. It is even clearly documented as such.

  5. mgravell commented on Jan 27, 2016

    @mgravell

    Some .NET Framework data providers may, but are not required to, use this information to optimize the performance of the command.

    Agreed and cited

  6. NickCraver commented on Jan 27, 2016

    @NickCraver
    ContributorAuthor

    +1 - PR Updated to ignore both behaviors.

  7. NickCraver commented on Feb 13, 2016

    @NickCraver
    ContributorAuthor

    Any update on this? I'd really like for this simple change to be folded into the RC2 release.

  8. mgravell commented on Feb 14, 2016

    @mgravell

    +another; pretty please with sprinkles on the top
    On 13 Feb 2016 10:46 p.m., "Nick Craver" notifications@github.com wrote:

    Any update on this? I'd really like for this simple change to be folded
    into the RC2 release.

    —
    Reply to this email directly or view it on GitHub
    #220 (comment)
    .

  9. bricelam commented on Feb 16, 2016

    @bricelam
    Contributor

    Well, since you asked so nicely... 😉

    Sorry for the delay. We were waiting to get the OK from one of our partner teams who is going to take a dependency on RC2. I'll go ahead and merge the PR.

  10. added this to the 1.0.0-rc2 milestone on Feb 16, 2016
  11. self-assigned this
    on Feb 16, 2016
  12. changed the title [-]CommandBehavior.SingleResult support[/-] [+]Allow CommandBehavior.SingleResult and SingleRow[/+] on Feb 16, 2016
  13. johandanforth commented on Feb 20, 2016

    @johandanforth

    @bricelam any idea when there will be a 1.0.0-rc2 nuget package which includes this fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions