You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cassandra.apache.org by huajun qi <qi...@gmail.com> on 2010/05/22 12:55:11 UTC
super column
Can the value of a column under a super column be a super column?
For examples:
sc={
name:"name",
value:{
{name:"First Name", value:"John"}
{name:"Last Name", value:"LBJ"}
}
}
this is a super column above, can I add a super column below to it's value?
info={name:"info",
value:{
"age":"20",
"gender":"M"
}
}
Can I add the super column to the top one to make this:
sc={
name:"name",
value:{
{name:"First Name", value:"John"}
{name:"Last Name", value:"LBJ"}
{name:"info",value:{name:"info",
value:{
"age":"20",
"gender":"M"
}
}}
}
}
And I have another question: should I restrict the number of columns in a
row?
--
Location:
Re: super column
Posted by huajun qi <qi...@gmail.com>.
Thank you! Is there a way to store that kind of data?
Re: super column
Posted by Jonathan Ellis <jb...@gmail.com>.
(a) No
(b) you should restrict it to < 2GB of data in 0.6
On Sat, May 22, 2010 at 3:55 AM, huajun qi <qi...@gmail.com> wrote:
> Can the value of a column under a super column be a super column?
>
> For examples:
>
> sc={
> name:"name",
> value:{
> {name:"First Name", value:"John"}
> {name:"Last Name", value:"LBJ"}
> }
> }
>
> this is a super column above, can I add a super column below to it's value?
>
> info={name:"info",
> value:{
> "age":"20",
> "gender":"M"
> }
> }
>
> Can I add the super column to the top one to make this:
>
> sc={
> name:"name",
> value:{
> {name:"First Name", value:"John"}
> {name:"Last Name", value:"LBJ"}
> {name:"info",value:{name:"info",
> value:{
> "age":"20",
> "gender":"M"
> }
> }}
> }
> }
>
>
> And I have another question: should I restrict the number of columns in a
> row?
>
> --
> Location:
>
--
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of Riptano, the source for professional Cassandra support
http://riptano.com
Re: super column
Posted by Jonathan Ellis <jb...@gmail.com>.
(a) No
(b) you should restrict it to < 2GB of data in 0.6
On Sat, May 22, 2010 at 3:55 AM, huajun qi <qi...@gmail.com> wrote:
> Can the value of a column under a super column be a super column?
>
> For examples:
>
> sc={
> name:"name",
> value:{
> {name:"First Name", value:"John"}
> {name:"Last Name", value:"LBJ"}
> }
> }
>
> this is a super column above, can I add a super column below to it's value?
>
> info={name:"info",
> value:{
> "age":"20",
> "gender":"M"
> }
> }
>
> Can I add the super column to the top one to make this:
>
> sc={
> name:"name",
> value:{
> {name:"First Name", value:"John"}
> {name:"Last Name", value:"LBJ"}
> {name:"info",value:{name:"info",
> value:{
> "age":"20",
> "gender":"M"
> }
> }}
> }
> }
>
>
> And I have another question: should I restrict the number of columns in a
> row?
>
> --
> Location:
>
--
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of Riptano, the source for professional Cassandra support
http://riptano.com