Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A4215C601 for ; Thu, 1 Jan 2015 19:48:03 +0000 (UTC) Received: (qmail 35957 invoked by uid 500); 1 Jan 2015 19:48:00 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 35916 invoked by uid 500); 1 Jan 2015 19:48:00 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 35906 invoked by uid 99); 1 Jan 2015 19:48:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jan 2015 19:48:00 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_IMAGE_ONLY_28,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_REMOTE_IMAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jens.rantil@tink.se designates 209.85.216.180 as permitted sender) Received: from [209.85.216.180] (HELO mail-qc0-f180.google.com) (209.85.216.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jan 2015 19:47:55 +0000 Received: by mail-qc0-f180.google.com with SMTP id i8so12431377qcq.39 for ; Thu, 01 Jan 2015 11:46:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tink.se; s=tink; h=date:mime-version:message-id:in-reply-to:references:from:to:cc :subject:content-type; bh=AoiXv19LKGVo4VuNzTPl3CfXmMCEzh4vzyCsa2dwiWQ=; b=cIwirkUouNrKIJKaamwZWFDXs6jqNfENaqMBXJxTkbxU0N3Ap0YeB2cxvRkWA+mVM3 2mcbJBtc/T6LgayfJR3FAN46U6ezfrZgVDig4hSatrwk32iDl5+1dm8JM3Zgfg94KJ8J xXYfQP+WOzEGu2lli6nkByS3IjHXiXU/cfbUU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:mime-version:message-id:in-reply-to :references:from:to:cc:subject:content-type; bh=AoiXv19LKGVo4VuNzTPl3CfXmMCEzh4vzyCsa2dwiWQ=; b=M+bsa0Hmazpr6I1HqfqtCbevHhNSp5gV3y5d5jsfvVYuMgaa/acFfx5neSnGogTzL1 oy6QPNfCda/4aMBsyL2ielv9Q9wZqQhHKhJRdRzSqEWzF4ihro0oKM5DTWa6I5A9Z8Vh 3zC6hAs5yDYHzhBkCa0clS9wizRHAfRpQ8jIE/pf7FI525FNWh8FcCpxd6FIlrSnGFOv 4CN84Fx5csTVssLcinugBHueBqmkYCHk2NEczs90L3TVBLn/xwc3Pfjc1WgPHVPE8h+f W4c/37ZIloGSJu6yltiFEV+kO5PGu5F5Knvep+rHdy1WoeIjOSlH/8eW7WwFaVii0uJx bNyw== X-Gm-Message-State: ALoCoQnP2eQB7z0Wu7X23+9XtLuO6+DFomZ9ISZIxatFUliLGjAP8tch75+qfhakyV3jh8mdTfth X-Received: by 10.224.55.197 with SMTP id v5mr118837506qag.59.1420141609465; Thu, 01 Jan 2015 11:46:49 -0800 (PST) Received: from hedwig-22.prd.orcali.com (ec2-54-85-253-234.compute-1.amazonaws.com. [54.85.253.234]) by mx.google.com with ESMTPSA id y95sm23670207qgy.14.2015.01.01.11.46.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 01 Jan 2015 11:46:49 -0800 (PST) Date: Thu, 01 Jan 2015 11:46:49 -0800 (PST) X-Google-Original-Date: Thu, 01 Jan 2015 19:46:48 GMT MIME-Version: 1.0 X-Mailer: Nodemailer (0.5.0; +http://www.nodemailer.com/) Message-Id: <1420141608654.ed870327@Nodemailer> In-Reply-To: References: X-Orchestra-Oid: 07789B36-53B8-462D-930E-E97104813ED9 X-Orchestra-Sig: 022214dcf37da8505dabc9aa0bb93b88e5c11242 X-Orchestra-Thrid: T80A81801-1388-4D36-90EB-0696711C54C9_1489122636646477675 X-Orchestra-Thrid-Sig: 8340030503af0ba447c54ba70cb225a4c526bc44 X-Orchestra-Account: 0ff3f022f7e3f16d3b31ec99c121d256f7f61849 From: "Jens Rantil" To: user@cassandra.apache.org Cc: user@cassandra.apache.org Subject: Re: is primary key( foo, bar) the same as primary key ( foo ) with a =?UTF-8?Q?=E2=80=98set'?= of bars? Content-Type: multipart/alternative; boundary="----Nodemailer-0.5.0-?=_1-1420141608991" X-Virus-Checked: Checked by ClamAV on apache.org ------Nodemailer-0.5.0-?=_1-1420141608991 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ...they have a somewhat different conflict/repair resolutions, too. On Thu, Jan 1, 2015 at 8:06 PM, DuyHai Doan wrote: > Storage-engine wise, they are almost equivalent, thought there are some > minor differences: > 1) with Set structure, you cannot store more that 64kb worth of data > 2) collections and maps are loaded entirely by Cassandra for each query, > whereas with clustering columns you can select a slice of columns > On Thu, Jan 1, 2015 at 7:46 PM, Kevin Burton wrote: >> I think the two tables are the same. Correct=3F >> >> create table foo ( >> >> source text, >> target text, >> primary key( source, target ) >> ) >> >> >> vs >> >> create table foo ( >> >> source text, >> target set, >> primary key( source ) >> ) >> >> =E2=80=A6 meaning that the first one, under the covers is represented = the same as >> the second. As a slice. >> >> Am I correct=3F >> >> -- >> >> Founder/CEO Spinn3r.com >> Location: *San Francisco, CA* >> blog: http://burtonator.wordpress.com >> =E2=80=A6 or check out my Google+ profile >> >> >> >> ------Nodemailer-0.5.0-?=_1-1420141608991 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
...they have a somewhat different conflict/repair resolutions, too.=



On Thu, Jan 1, 2015 at 8:06 PM,= DuyHai Doan <doanduyhai@gmail.com> = wrote:

Storage-engine wise, they are almost equivalent, = thought there are some minor differences:

1) with Set structure, you cannot store more that 64kb worth of = data
2) collections and maps are loaded entirely by Cassandra for each = query, whereas with clustering columns you can select a slice of = columns



On Thu, Jan 1, 2015 at 7:46 PM, Kevin = Burton <burton@spinn3r.com> wrote:
I think the two tables are the same.=C2=A0 = Correct=3F

create table foo (

=C2=A0 =C2=A0 source text,
=C2=A0 =C2=A0 target text,
=C2=A0 =C2=A0 primary key( source, target )
)


vs=C2=A0

create table foo (

=C2=A0 =C2=A0 source text,
=C2=A0 =C2=A0 target set<text>,
=C2=A0 =C2=A0 primary key( source )
)

=E2=80=A6 meaning that the first one, under the covers is represented = the same as the second.=C2=A0 As a slice.

Am I correct=3F

--

Founder/CEO=C2=A0Spinn3r.= com
Location:=C2=A0San Francisco, CA
=E2=80=A6 or check out my Google+ profile



------Nodemailer-0.5.0-?=_1-1420141608991--