1. 06 Apr, 2014 1 commit
  2. 03 Oct, 2012 1 commit
    • antirez's avatar
      "SORT by nosort" (skip sorting) respect sorted set ordering. · 9a914a63
      antirez authored
      When SORT is called with the option BY set to a string constant not
      inclduing the wildcard character "*", there is no way to sort the output
      so any ordering is valid. This allows the SORT internals to optimize its
      work and don't really sort the output at all.
      
      However it was odd that this option was not able to retain the natural
      order of a sorted set. This feature was requested by users multiple
      times as sometimes to call SORT with GET against sorted sets as a way to
      mass-fetch objects can be handy.
      
      This commit introduces two things:
      
      1) The ability of SORT to return sorted sets elements in their natural
      ordering when `BY nosort` is specified, accordingly to `DESC / ASC` options.
      2) The ability of SORT to optimize this case further if LIMIT is passed
      as well, avoiding to really fetch the whole sorted set, but directly
      obtaining the specified range.
      
      Because in this case the sorting is always deterministic, no
      post-sorting activity is performed when SORT is called from a Lua
      script.
      
      This commit fixes issue #98.
      9a914a63
  3. 17 Apr, 2012 1 commit
  4. 01 Feb, 2012 4 commits
  5. 30 Jan, 2012 1 commit
  6. 19 Dec, 2011 1 commit
  7. 01 Dec, 2011 1 commit
  8. 10 Dec, 2010 1 commit
  9. 15 Oct, 2010 1 commit
  10. 26 Aug, 2010 1 commit
  11. 21 Aug, 2010 4 commits
  12. 02 Jun, 2010 3 commits
  13. 14 May, 2010 2 commits