You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Weijun Li <we...@gmail.com> on 2010/05/05 03:09:59 UTC

Use binary memtable to load data

Does anyone use binary memtable to import data into Cassandra? When you do
this how do you determine the destination node that should own those data?
Is replication factor taken into consideration when you import binary
memtable?

Thanks,

-Weijun

Re: Use binary memtable to load data

Posted by Jonathan Ellis <jb...@gmail.com>.
Yes.

On Wed, May 5, 2010 at 11:06 AM, Weijun Li <we...@gmail.com> wrote:
> So when you bundle list of keys into a binary table you don't need to worry
> about grouping them by nodes or whatever, and StorageProxy will take care of
> routing of these keys to the proper nodes. Is this correct?
>
> Thanks,
>
> -Weijun
>
> On Tue, May 4, 2010 at 9:14 PM, Jonathan Ellis <jb...@gmail.com> wrote:
>>
>> On Tue, May 4, 2010 at 8:09 PM, Weijun Li <we...@gmail.com> wrote:
>> > Does anyone use binary memtable to import data into Cassandra?
>>
>> Yes.
>>
>> > When you do
>> > this how do you determine the destination node that should own those
>> > data?
>>
>> You let the StorageProxy API figure that out.
>>
>> > Is replication factor taken into consideration when you import binary
>> > memtable?
>>
>> Yes.
>>
>> You should probably look at the example in contrib/bmt_example.
>>
>> --
>> Jonathan Ellis
>> Project Chair, Apache Cassandra
>> co-founder of Riptano, the source for professional Cassandra support
>> http://riptano.com
>
>



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of Riptano, the source for professional Cassandra support
http://riptano.com

Re: Use binary memtable to load data

Posted by Weijun Li <we...@gmail.com>.
So when you bundle list of keys into a binary table you don't need to worry
about grouping them by nodes or whatever, and StorageProxy will take care of
routing of these keys to the proper nodes. Is this correct?

Thanks,

-Weijun

On Tue, May 4, 2010 at 9:14 PM, Jonathan Ellis <jb...@gmail.com> wrote:

> On Tue, May 4, 2010 at 8:09 PM, Weijun Li <we...@gmail.com> wrote:
> > Does anyone use binary memtable to import data into Cassandra?
>
> Yes.
>
> > When you do
> > this how do you determine the destination node that should own those
> data?
>
> You let the StorageProxy API figure that out.
>
> > Is replication factor taken into consideration when you import binary
> > memtable?
>
> Yes.
>
> You should probably look at the example in contrib/bmt_example.
>
> --
> Jonathan Ellis
> Project Chair, Apache Cassandra
> co-founder of Riptano, the source for professional Cassandra support
> http://riptano.com
>

Re: Use binary memtable to load data

Posted by Jonathan Ellis <jb...@gmail.com>.
On Tue, May 4, 2010 at 8:09 PM, Weijun Li <we...@gmail.com> wrote:
> Does anyone use binary memtable to import data into Cassandra?

Yes.

> When you do
> this how do you determine the destination node that should own those data?

You let the StorageProxy API figure that out.

> Is replication factor taken into consideration when you import binary
> memtable?

Yes.

You should probably look at the example in contrib/bmt_example.

-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of Riptano, the source for professional Cassandra support
http://riptano.com