Hi Bryce, You generally want to avoid creating too many buckets with custom bucket properties, as this gets stored in Riak's ring data. A large number of custom buckets will degrade cluster performance.
Is there any reason why you don't just create two buckets, with the desired LWW/allow_mult=true settings and then prepend the timestamp to your key? Tom On Wed, Dec 11, 2013 at 1:47 PM, Bryce Verdier <bryceverd...@gmail.com>wrote: > Hi All, > > Is it at all possible to have default bucket props be based on the bucket > names? I ask because I'm trying to use Riak to store key/value data and use > the buckets to separate the data based on day and for a couple of different > projects, for example: > > buckets/project-year-month-day/key > > The issue becomes I have one project that needs 'allow_mult' to true, and > another that needs 'last_write_wins' set to true (requiring that > 'allow_mult' be false). So using the default_buckets_props will only get me > half way there. > > Does anyone know of a way I can do this? The only solution I can think of > off the top of my head is to create a cron job that creates the bucket > sooner than when the clients start writing to it. > > Thank you in advance, > > Bryce > > PS -- can anyone tell me what: > {multi_backend_prefix_list, [{<<"0b:">>, be_blocks}]}} > does? > > _______________________________________________ > 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