Is there any limitation on the max size of a SORTED SET

1,956 views
Skip to first unread message

tunggad

unread,
Nov 11, 2010, 1:01:38 PM11/11/10
to Redis DB
Hi Redis Folks,

I'm new to redis, want to user it for tracking sensor data.

We want to do RANGE-Query on date of the datasets, therefor we put the
datasets into one SORTED SET with date as the SCORE of each element.

We want to know, whether there is any limitation on the max size of a
SORTED SET, regarding the performance?

Thanks you very much!

Josiah Carlson

unread,
Nov 11, 2010, 1:39:53 PM11/11/10
to redi...@googlegroups.com
As long as you have the memory, and as long as your system can support
the items (32 bit vs. 64 bit), zsets have performance of O(logn + k),
where n is the size of your zset, and k is the number of items you
want to return in your query.

- Josiah

> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages