antirez/redis — Issue #237: Generate better AOF for 2.6 using the new variadic commands
Author: antirez
Created: 2011-12-06 14:22:25+00:00
State: open
Labels: approved feature, feature request

For 2.6 we need to generate better AOF files that are more compact and faster to write and read, An obvious instance is the following:

Currently a list of three items is rendered as:

* RPUSH foo 1
* RPUSH foo 2
* RPUSH foo 3

As you can see this is far from optimal... we'll instead generate:

* RPUSH foo 1 2 3

Of course it is not wise to generate commands with too many arguments, so we'll limit it to a maximum number of arguments per command.

The same applies to Hashes, Sets and Sorted Sets, since we have variadic versions of SADD, HMSET, ZADD.

This will be implemented in the next days and will definitely be included into Redis 2.6.