Hi Senthilkumar, You can set bucket properties in two ways.
1. Set the default bucket properties in app.config which will be used by buckets which have not been explicitly defined. 2. Set the bucket properties through the REST API. https://wiki.basho.com/display/RIAK/REST+API#RESTAPI-Setbucketproperties You can set bucket properties through the REST API without putting documents in the bucket. You'll have to determine which method to use based on your application's requirements. Thanks, Dan Daniel Reverri Developer Advocate Basho Technologies, Inc. d...@basho.com On Sun, Aug 15, 2010 at 10:29 PM, Senthilkumar Peelikkampatti < senthilkumar.peelikkampa...@gmail.com> wrote: > May be I try to rephrase my question Since bucket are not specifically > declared and as and when it will be created base on put(B,K,V ...), so B can > be anything and it become available. I need to created post commit for some > buckets but not for all and those are not know beforehand. Since it is not > declared and its virtual and so how to create post commits for this > scenario? one way is app.config and I am trying to see what is the best way > to do. > > > On Mon, Aug 16, 2010 at 12:22 AM, Senthilkumar Peelikkampatti < > senthilkumar.peelikkampa...@gmail.com> wrote: > >> Alexander, >> Thanks and I am aware of that. But when bucket get dynamically created >> and you don't know when because as and when you add document it will be >> brought into life, but at what point you would create properties for those >> buckets especially post_commit_hook? for me I need it from first doc. I >> found one way to do is using app.config but if Riak informs when first >> document bucket is brought into life I can also set post_commit hook for >> that particular bucket. whatever set in app.config is global and not >> specific to specific buckets but this is the story. I need post commit to >> be live for from first document to do something else. >> >> Thanks, >> Senthil >> >> >> On Sun, Aug 15, 2010 at 9:24 PM, Senthilkumar Peelikkampatti < >> senthilkumar.peelikkampa...@gmail.com> wrote: >> >>> I am having a situation where buckets gets created dynamically and I want >>> to attach post commit hook to it. Since it is part of bucket properties, how >>> to deal with when I set bucket properties? Since bucket is kind of virtual >>> and got deleted when no documents in it and created when first document is >>> put. Is there a way to find out when first time bucket is created? If I >>> know, I can attach once post hook properties. Or is that part of app.config >>> and can be set as part of config properties? >>> Please provide your thoughts. >>> >>> -- >>> Regards, >>> Senthilkumar, >>> >>> >> >> >> -- >> Regards, >> Senthilkumar Peelikkampatti, >> http://pmsenthilkumar.blogspot.com/ >> >> > > > -- > Regards, > Senthilkumar Peelikkampatti, > http://pmsenthilkumar.blogspot.com/ > > > _______________________________________________ > riak-users mailing list > riak-users@lists.basho.com > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > >
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com