TIL in RediSearch, if you are running an FT.AGGREGATE with a SORTBY, if you apply no MAX, it will only sort the first 10 records. github.com/redis/redis-... One of the really neat things about RediSearch is that it makes you really think about how you're querying your data in #redis.
Post
github.comUnusual behavior of 'Count' with 'SORTBY' · Issue #502 · redis/redis-om-dotnetHi when I try use Count after Orderby cause return wrong result. Sample code is: /* * Redis-OM: 0.7.6 * dotnet core 8.0 * OS Program Run: Windows 10 22H2 * Redis Info: * redis_version:7.4.1 * redis...
O(N) in the size of the Result Set (the documents sent back to you). So, that's why we default to 10, we want some relatively small constant - which in strict time-complexity terms - removes the O(N) (as N is a constant), now you're bound to the access complexity of the index O(1) or O(log(N))
0 reposts0 likes