Re: Query on delete a column inside a super column

2010-07-08 Thread Moses Dinakaran
As per my knowledge in phpCassa I didnt find any option to remove a column from the supercolumn, The remove method removes the whole super column from the key, will check with thrift api. Through mutation object insert/update happens but removing a column dosent happen. Thank you all. Regards Mo

Re: Query on delete a column inside a super column

2010-07-07 Thread Jonathan Ellis
the thrift api allows you to optionally specify column and subcolumn as well. no idea how or if phpCassa exposes this though. On Wed, Jul 7, 2010 at 1:51 AM, Moses Dinakaran wrote: > Hi, > > Thanks for the reply, > > The remove method > $cassandraInstance->remove('cache_pages_key_hash', 'hash_1'

SV: Query on delete a column inside a super column

2010-07-07 Thread Thorvaldsson Justus
apache.org Ämne: Re: Query on delete a column inside a super column Hi, Thanks for the reply, The remove method $cassandraInstance->remove('cache_pages_key_hash', 'hash_1' ) which will remove the whole key, But I don't want to do that, I need to remove one column ins

Re: Query on delete a column inside a super column

2010-07-06 Thread Moses Dinakaran
Hi, Thanks for the reply, The remove method $cassandraInstance->remove('cache_pages_key_hash', 'hash_1' ) which will remove the whole key, But I don't want to do that, I need to remove one column inside that key Can you please tell me how to use the remove method in this case. Regards, Moses.

Re: Query on delete a column inside a super column

2010-07-06 Thread Jonathan Ellis
insert is insert-or-update. leaving out a column from an update doesn't delete it, you need to use the remove method for that. On Tue, Jul 6, 2010 at 7:41 AM, Moses Dinakaran wrote: > Hi All, > > I have a query related to deleting a column inside a super column > > The following is my cassandra

Query on delete a column inside a super column

2010-07-06 Thread Moses Dinakaran
Hi All, I have a query related to deleting a column inside a super column The following is my cassandra schema [cache_pages_key_hash] => Array ( [hash_1] => Array ( [1] => 4c330e95195f9 [2] => 4c330e951f18b