[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">&lt;<a \
href="mailto:roshandawrani@gmail.com">roshandawrani@gmail.com</a>&gt;</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">&lt;<a \
href="mailto:nate@riptano.com" target="_blank">nate@riptano.com</a>&gt;</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&#39;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>&lt;<a href="mailto:roshandawrani@gmail.com" \
target="_blank">roshandawrani@gmail.com</a>&gt; wrote:<br> &gt; There doesn&#39;t \
really seem to be an inherent limitation in batching<br> &gt; sub-column deletes.<br>
&gt;<br>
&gt; Pelops seem to be doing it -<br>
&gt; <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>
 &gt; [deleteSubColumn() / deleteSubColumns()]<br>
&gt;<br>
&gt; Is it worth an improvement request on Hector?<br>
&gt;<br>
&gt; On Mon, Dec 27, 2010 at 10:07 AM, Roshan Dawrani &lt;<a \
href="mailto:roshandawrani@gmail.com" \
target="_blank">roshandawrani@gmail.com</a>&gt;<br> &gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Which &quot;No&quot;?<br>
&gt;&gt;<br>
&gt;&gt; 1) No, it is &quot;not&quot; correct correct that they can&#39;t be batched, \
or<br> &gt;&gt;<br>
&gt;&gt; 1) No, they can&#39;t be batched<br>
&gt;&gt;<br>
&gt;&gt; :-)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Mon, Dec 27, 2010 at 10:04 AM, Jonathan Ellis &lt;<a \
href="mailto:jbellis@gmail.com" target="_blank">jbellis@gmail.com</a>&gt;<br> \
&gt;&gt; wrote:<br> &gt;&gt;&gt;<br>
&gt;&gt;&gt; On Sun, Dec 26, 2010 at 9:14 AM, Roshan Dawrani &lt;<a \
href="mailto:roshandawrani@gmail.com" \
target="_blank">roshandawrani@gmail.com</a>&gt;<br> &gt;&gt;&gt; wrote:<br>
&gt;&gt;&gt; &gt; Is it correct that mutations that delete subcolumns of a super \
column<br> &gt;&gt;&gt; &gt; can&#39;t<br>
&gt;&gt;&gt; &gt; be batched - unlike inserts and deletes of normal columns?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; No.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Jonathan Ellis<br>
&gt;&gt;&gt; Project Chair, Apache Cassandra<br>
&gt;&gt;&gt; co-founder of Riptano, the source for professional Cassandra support<br>
&gt;&gt;&gt; <a href="http://riptano.com" target="_blank">http://riptano.com</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Roshan<br>
&gt;&gt; Blog: <a href="http://roshandawrani.wordpress.com/" \
target="_blank">http://roshandawrani.wordpress.com/</a><br> &gt;&gt; Twitter: \
@roshandawrani<br> &gt;&gt; Skype: roshandawrani<br>
&gt;&gt;<br>
&gt;<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