Another aggregation for zsets?

37 views
Skip to first unread message

Josiah Carlson

unread,
Jul 3, 2010, 9:10:35 PM7/3/10
to redi...@googlegroups.com
Zset aggregate functions are currently limited to sum, min, and max.
Is anyone interested in adding multiplication? With multiplication,
you can pre-multiply one set by -1, and get subtraction for free,
never mind the base multiplication and division. It's only a 5 line
change...

http://github.com/josiahcarlson/redis/commit/6bc6b215f2d490288192646fa908f6e94587c4f0

Regards,
- Josiah

al james

unread,
Jul 12, 2010, 6:32:10 PM7/12/10
to Redis DB
yes, this would be great. It would allow you to calculate the (sparse)
dot product of two vectors stored as sorted sets.

Al
> http://github.com/josiahcarlson/redis/commit/6bc6b215f2d490288192646f...
>
> Regards,
>  - Josiah
Reply all
Reply to author
Forward
0 new messages