hackpar / redis

Automatically exported from code.google.com/p/redis
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Allow SORT Command to STORE results as sorted set #653

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Would it be possible to STORE the output from the SORT command as a sorted set 
where the weight is either the external value referenced in the BY option or 
the ordinal position of the element in the new sorted set?

This would be especially useful for when I use the GET option to transform the 
value of an element into another related value. But I also want to be able to 
perform additional key intersections on the new sorted set  and I can't do that 
with the list datatype the SORT command currently uses to store results.

Original issue reported on code.google.com by dallas.s...@gmail.com on 1 Sep 2011 at 12:59

GoogleCodeExporter commented 8 years ago
Hello, unfortunately the SORT command is already at the max complexity... even 
a bit further ;)

I hope your problems can be solved using the scripting feature that will be 
available with Redis 2.6 and is already working (alpha stage) in the unstable 
branch.

Salvatore

Original comment by anti...@gmail.com on 14 Sep 2011 at 12:45