Re: Help

2017-01-14 Thread Aleksandr Ivanov
Could you share a bit your cluster setup? Do you use cloud for your deployment or dedicated firewalls in front of nodes? If gossip shows that everything is up it doesn't mean that all nodes can communicate with each other. I have noticed situations when TCP connection was killed by firewall and Ca

Re: implementing a 'sorted set' on top of cassandra

2017-01-14 Thread Benjamin Roth
Mike mentioned "increment" in his initial post. That let me think of a case with increments and fetching a top list by a counter like https://redis.io/commands/zincrby https://redis.io/commands/zrangebyscore 1. Cassandra is absolutely not made to sort by a counter (or a non-counter numeric increme

Re: implementing a 'sorted set' on top of cassandra

2017-01-14 Thread Jonathan Haddad
Sorted sets don't have a requirement of incrementing / decrementing. They're commonly used for thing like leaderboards where the values are arbitrary. In Redis they are implemented with 2 data structures for efficient lookups of either key or value. No getting around that as far as I know. In Cas

Re: implementing a 'sorted set' on top of cassandra

2017-01-14 Thread DuyHai Doan
Sorting on an "incremented" numeric value has always been a nightmare to be done properly in C* Either use Counter type but then no sorting is possible since counter cannot be used as type for clustering column (which allows sort) Or use simple numeric type on clustering column but then to increm