Re: pseudo-atomic operations

2012-11-18 Thread Guido Medina
Atomicity is always a delicate subject, but it could be resolved with either the following solutions: 1. Your application can have a re-entrant or synchronized lock: /lock(username) { create if not present then exit lock; if present then return to user asking for another username }/ 2. Or

Re: pseudo-atomic operations

2012-11-18 Thread Jeremiah Peschka
Chiming in on this as well - Using lock(username) will work as long as you have a centralized application server where all creates occur. As soon as you have two systems involved you can run into the same problems that you'd run into with Riak. Issuing a lock is, however, a great way to get starte

Re: pseudo-atomic operations

2012-11-18 Thread Petrushka Petrushka
Thanks, this is all very helpful. I think what I'll do is keep the Riak settings at default and not do anything tricky there. And then I'll use Redis as a locking manager as described here: http://redis.io/commands/setnx Initially it will just be a single Redis instance but by the time I'm rea

about eleveldb bench performance

2012-11-18 Thread yaoxinming
I run bench test in eleveldb(the value of key=100B), there are only about 20k ops/t for put ,when I run leveldb db_bench in the same computer , the fillseq is 3 micro/op, is normal? thanks yaoxinming ___ riak-users mailing list riak-users@lists.basho

How to delete the bucket?

2012-11-18 Thread 郎咸武
Hi guys, I create a <<"test">> bucket. Now i want to delete the bucket. But i can not found the API in the wiki. How to delete the bucket? Please give a piece idea. Cheers, Jason. -- 只为成功找方法,不为失败找理由 ___ riak-users mailing list riak-users@lists.basho.co

Re: How to delete the bucket?

2012-11-18 Thread Jeremiah Peschka
There's no way to specifically delete a bucket - buckets are, in part, a logical namespace. Once you delete every key in a bucket the bucket will effectively be deleted. The easiest thing to do in a test environment is to run list keys on the bucket. This is a terrible idea for a production system

calculate the data storage amount

2012-11-18 Thread Venki Yedidha
Hi All, I would like to know the data storage of my riak database till date. Also, I would like to know the space occupied on a riak cluster by a bucket/key's data inserted. am running all the nodes(in the cluster) on eleveldb backend. Thanks, Venkatesh _