You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 1, 2018. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 1, 2018. It is now read-only.
Allow CommandBehavior.SingleResult and SingleRow #220
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?
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).
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.
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.
Activity
divega commentedon Jan 26, 2016
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).
NickCraver commentedon Jan 27, 2016
PR #221 open to ignore the behavior for now - no harm in ignoring for now and adding actual optimizations later.
mgravell commentedon Jan 27, 2016
SingleResultis actually "single grid"; IMO you should also ignoreSingleRow, which is a similar hint that can be safely ignored if the library doesn't choose to exploit it.divega commentedon Jan 27, 2016
👍
SingleRowis a hint that providers are not required to look at. It is even clearly documented as such.mgravell commentedon Jan 27, 2016
Agreed and cited
Also ignore CommandBehavior.SingleRow hint per aspnet#220
NickCraver commentedon Jan 27, 2016
+1 - PR Updated to ignore both behaviors.
NickCraver commentedon Feb 13, 2016
Any update on this? I'd really like for this simple change to be folded into the RC2 release.
mgravell commentedon Feb 14, 2016
+another; pretty please with sprinkles on the top
On 13 Feb 2016 10:46 p.m., "Nick Craver" notifications@github.com wrote:
bricelam commentedon Feb 16, 2016
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.
[-]CommandBehavior.SingleResult support[/-][+]Allow CommandBehavior.SingleResult and SingleRow[/+]johandanforth commentedon Feb 20, 2016
@bricelam any idea when there will be a 1.0.0-rc2 nuget package which includes this fix?