-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using IDatabase.Execute or IDatabase.ExecuteAsync causes to next command run after a 'SELECT 0' #2845
Comments
This is intentional because if you're using I would suggest the most appropriate fix in this case would be: use |
@mgravell i agree for |
Firstly, I'd challenge whether there is a measured and demonstrable impact from a pipelined
on the "if you like, the bad things are on you" basis. However, as Monty notes: there's a huge amount of API overhead at the moment, so adding a |
TBH i dont have such benchmarks right in my hand, either for client side or server side. |
and if we were forcing an additional round-trip for that: I would 100% agree with you; however, a pipelined |
👍 thank youu! |
each time an
IDatabase.ExecuteAsync
orIDatabase.Execute
s called, the next command executes after aSELECT 0
is sent.output from
MONITOR
command;only way i can find to avoid ths seems to disable the
SELECT
command, which is not suitable for all cases.this is caused due to the type of command
Message
isUNKNOWN
whenExecute
orExecuteAsync
here 👇
StackExchange.Redis/src/StackExchange.Redis/PhysicalBridge.cs
Line 1611 in 1a4c66d
How about making it optional to set it as unknown every time, or introduce an option command type
CUSTOM
, i am happy to come up with a PR.The text was updated successfully, but these errors were encountered: