[prev in list] [next in list] [prev in thread] [next in thread]
List: cassandra-user
Subject: Re: The mutations to delete sub-columns can't be batched?
From: Ran Tavory <rantav () gmail ! com>
Date: 2010-12-28 7:31:16
Message-ID: AANLkTimtDKfF7KrjfRoy7PWXkJd=fEAsyiukPHgCx1Ky () mail ! gmail ! com
[Download RAW message or body]
an oversight as well. as you can imagine, non of us is a fan of super
columns...
On Tue, Dec 28, 2010 at 6:28 AM, Roshan Dawrani <roshandawrani@gmail.com>wrote:
> Hi,
>
> I think I may have found another oversight on the Hector API.
>
> OrderedRows has a convenient peekLast() method, but it is missing in
> OrderedSuperRows.
>
> I am trying to get the rows in a batched manner, and being able to peek at
> the last one to make it the start key of the next batch is convenient.
>
> Of-course, I am able to pick the last row in a not-so-convenient way, but
> the API should be symmetrical.
>
>
>
> On Mon, Dec 27, 2010 at 10:22 PM, Nate McCall <nate@riptano.com> wrote:
>
>> Huh. That appears to be an oversight on our part. I'll add an
>> addSubDeletion to the Mutator class in trunk. Thank you for bringing
>> this up.
>>
>> On Sun, Dec 26, 2010 at 10:47 PM, Roshan Dawrani
>> <roshandawrani@gmail.com> wrote:
>> > There doesn't really seem to be an inherent limitation in batching
>> > sub-column deletes.
>> >
>> > Pelops seem to be doing it -
>> >
>> http://pelops.googlecode.com/svn/trunk/src/org/wyki/cassandra/pelops/Mutator.java
>> > [deleteSubColumn() / deleteSubColumns()]
>> >
>> > Is it worth an improvement request on Hector?
>> >
>> > On Mon, Dec 27, 2010 at 10:07 AM, Roshan Dawrani <
>> roshandawrani@gmail.com>
>> > wrote:
>> >>
>> >> Which "No"?
>> >>
>> >> 1) No, it is "not" correct correct that they can't be batched, or
>> >>
>> >> 1) No, they can't be batched
>> >>
>> >> :-)
>> >>
>> >>
>> >> On Mon, Dec 27, 2010 at 10:04 AM, Jonathan Ellis <jbellis@gmail.com>
>> >> wrote:
>> >>>
>> >>> On Sun, Dec 26, 2010 at 9:14 AM, Roshan Dawrani <
>> roshandawrani@gmail.com>
>> >>> wrote:
>> >>> > Is it correct that mutations that delete subcolumns of a super
>> column
>> >>> > can't
>> >>> > be batched - unlike inserts and deletes of normal columns?
>> >>>
>> >>> No.
>> >>>
>> >>> --
>> >>> Jonathan Ellis
>> >>> Project Chair, Apache Cassandra
>> >>> co-founder of Riptano, the source for professional Cassandra support
>> >>> http://riptano.com
>> >>
>> >>
>> >>
>> >> --
>> >> Roshan
>> >> Blog: http://roshandawrani.wordpress.com/
>> >> Twitter: @roshandawrani
>> >> Skype: roshandawrani
>> >>
>> >
>>
>
>
>
> --
> Roshan
> Blog: http://roshandawrani.wordpress.com/
> Twitter: @roshandawrani <http://twitter.com/roshandawrani>
> Skype: roshandawrani
>
>
--
/Ran
[Attachment #3 (text/html)]
<div dir="ltr">an oversight as well. as you can imagine, non of us is a fan of super \
columns...<br><br><div class="gmail_quote">On Tue, Dec 28, 2010 at 6:28 AM, Roshan \
Dawrani <span dir="ltr"><<a \
href="mailto:roshandawrani@gmail.com">roshandawrani@gmail.com</a>></span> \
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex;">Hi,<br><br>I think I may have found another oversight on the \
Hector API.<br><br>OrderedRows has a convenient peekLast() method, but it is missing \
in OrderedSuperRows.<br>
<br>I am trying to get the rows in a batched manner, and being able to peek at the \
last one to make it the start key of the next batch is convenient.<br> <br>Of-course, \
I am able to pick the last row in a not-so-convenient way, but the API should be \
symmetrical.<div><div></div><div class="h5"><br><br><br><div class="gmail_quote">On \
Mon, Dec 27, 2010 at 10:22 PM, Nate McCall <span dir="ltr"><<a \
href="mailto:nate@riptano.com" target="_blank">nate@riptano.com</a>></span> \
wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid \
rgb(204, 204, 204);padding-left:1ex">Huh. That appears to be an oversight on our \
part. I'll add an<br> addSubDeletion to the Mutator class in trunk. Thank you for \
bringing<br> this up.<br>
<br>
On Sun, Dec 26, 2010 at 10:47 PM, Roshan Dawrani<br>
<div><div></div><div><<a href="mailto:roshandawrani@gmail.com" \
target="_blank">roshandawrani@gmail.com</a>> wrote:<br> > There doesn't \
really seem to be an inherent limitation in batching<br> > sub-column deletes.<br>
><br>
> Pelops seem to be doing it -<br>
> <a href="http://pelops.googlecode.com/svn/trunk/src/org/wyki/cassandra/pelops/Mutator.java" \
target="_blank">http://pelops.googlecode.com/svn/trunk/src/org/wyki/cassandra/pelops/Mutator.java</a><br>
> [deleteSubColumn() / deleteSubColumns()]<br>
><br>
> Is it worth an improvement request on Hector?<br>
><br>
> On Mon, Dec 27, 2010 at 10:07 AM, Roshan Dawrani <<a \
href="mailto:roshandawrani@gmail.com" \
target="_blank">roshandawrani@gmail.com</a>><br> > wrote:<br>
>><br>
>> Which "No"?<br>
>><br>
>> 1) No, it is "not" correct correct that they can't be batched, \
or<br> >><br>
>> 1) No, they can't be batched<br>
>><br>
>> :-)<br>
>><br>
>><br>
>> On Mon, Dec 27, 2010 at 10:04 AM, Jonathan Ellis <<a \
href="mailto:jbellis@gmail.com" target="_blank">jbellis@gmail.com</a>><br> \
>> wrote:<br> >>><br>
>>> On Sun, Dec 26, 2010 at 9:14 AM, Roshan Dawrani <<a \
href="mailto:roshandawrani@gmail.com" \
target="_blank">roshandawrani@gmail.com</a>><br> >>> wrote:<br>
>>> > Is it correct that mutations that delete subcolumns of a super \
column<br> >>> > can't<br>
>>> > be batched - unlike inserts and deletes of normal columns?<br>
>>><br>
>>> No.<br>
>>><br>
>>> --<br>
>>> Jonathan Ellis<br>
>>> Project Chair, Apache Cassandra<br>
>>> co-founder of Riptano, the source for professional Cassandra support<br>
>>> <a href="http://riptano.com" target="_blank">http://riptano.com</a><br>
>><br>
>><br>
>><br>
>> --<br>
>> Roshan<br>
>> Blog: <a href="http://roshandawrani.wordpress.com/" \
target="_blank">http://roshandawrani.wordpress.com/</a><br> >> Twitter: \
@roshandawrani<br> >> Skype: roshandawrani<br>
>><br>
><br>
</div></div></blockquote></div><br><br clear="all"><br></div></div>-- \
<br><div><div></div><div class="h5">Roshan<br>Blog: <a \
href="http://roshandawrani.wordpress.com/" \
target="_blank">http://roshandawrani.wordpress.com/</a><br>
Twitter: <a href="http://twitter.com/roshandawrani" \
target="_blank">@roshandawrani</a><br>
Skype: roshandawrani<br><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><font \
color="#999999">/Ran</font></div><br> </div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic