title: Redis mass insertion: protocol vs inline commands
body: <p>For my task I need to load a bulk of data into Redis as soon as possible. It looks like this article is right about my case: <a href="https://redis.io/topics/mass-insert" rel="nofollow noreferrer">https://redis.io/topics/mass-insert</a></p>
  
  <p>The article starts from giving an example of using multiple inline <code>SET</code> commands with <em>redis-cli</em>. Then they proceed to generating Redis protocol and again use it with <em>redis-cli</em>. They don't explain the reasons or benefits of using Redis protocol.</p>
  
  <p>Using of Redis protocol is a bit harder and it generates a bit more traffic. I wonder, what are the reasons to use Redis protocol rather than simple one-line commands? Probably despite the fact the data is larger, it is easier (and faster) for Redis to parse it?</p>