2

Once redis receives a piped file, will that redis instance block for all the commands as if it were one large transaction?

If not, can I wrap subsets of commands in the piped file in MULTI/EXECs?

The documentation on https://redis.io/topics/mass-insert isn't entirely clear.

asked Sep 22, 2017 at 16:25

1 Answer 1

1

Once redis receives a piped file, will that redis instance block for all the commands as if it were one large transaction?

Redis may interleave other operations between the pipelined ones.

If not, can I wrap subsets of commands in the piped file in MULTI/EXECs?

Definitely. Do that when you require "atomicity" of a block of operations.

The documentation on https://redis.io/topics/mass-insert isn't entirely clear.

True, but reading about pipelining and transactions provides the whole picture.

answered Sep 22, 2017 at 17:18
Sign up to request clarification or add additional context in comments.

1 Comment

Thank you! I was unclear on the overlap between pipe mode and pipelining. I'll look into the pipeline documentation now.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.