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 7660310CCE for ; Fri, 2 Jan 2015 19:35:52 +0000 (UTC) Received: (qmail 83445 invoked by uid 500); 2 Jan 2015 19:35:50 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 83401 invoked by uid 500); 2 Jan 2015 19:35:50 -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 83391 invoked by uid 99); 2 Jan 2015 19:35:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jan 2015 19:35:50 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tyler@datastax.com designates 209.85.212.179 as permitted sender) Received: from [209.85.212.179] (HELO mail-wi0-f179.google.com) (209.85.212.179) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jan 2015 19:35:46 +0000 Received: by mail-wi0-f179.google.com with SMTP id ex7so63566wid.12 for ; Fri, 02 Jan 2015 11:35:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datastax.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=DE+sivGhtf+kq/zXM4Abo0iVx7B5V0TIDTzqEq0NKGE=; b=Jep/Deg/T60Qx7h9TJ19MFuxLnMhSUHaDyokzziNm+dq3h0UWQmYKRTFAdMyrM92o8 dEG2Ig9u3t/KjkSSDGD5ja23BEPj7DDm2ZqPw2hVGWNR1uSSae0MNFn/E0p0UBkrxSiS CqLei24aNHOjXHAh/NpM3F7w0eIHnw8a8lChM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=DE+sivGhtf+kq/zXM4Abo0iVx7B5V0TIDTzqEq0NKGE=; b=fxopoyxQ0WE27gTagwHKc5lEOPSbcdijULJYLHrYWVbaiQHQNILfx1v/fLvaDin32p SWauG2802VarkAX+o5sTqJXhlq/yoq+KdAcii/uRoWoleJULq90NnsXI32VT9I32a++e LH8H0dpqzXAQwikZqdtzIF+6PvooNtqSBPwOFT3+YBadU8dLQOQ+5Xq8j1O/IL/HXVnE fjHYqQf9cx+dHppNZ8VSEGUrkf0aA6WEKXSBS3dZh1qElpSNMeCfqedPhk0hMmX0/3ZD Jm+T4h4ZrVu5WpHkUW9CF1UG8iy9gHOL82SfHcAmK26cV0xuMPMApQDY/RsywRhyjzl6 EvsQ== X-Gm-Message-State: ALoCoQm09aF/mG/NMUD0ja7FoU4N2zlZamNV1kOj+Rwg9fD8omOPPaqPuqbGontvC9uendAwckmr X-Received: by 10.194.22.6 with SMTP id z6mr148225109wje.55.1420227325149; Fri, 02 Jan 2015 11:35:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.27.146.198 with HTTP; Fri, 2 Jan 2015 11:35:04 -0800 (PST) In-Reply-To: References: From: Tyler Hobbs Date: Fri, 2 Jan 2015 13:35:04 -0600 Message-ID: Subject: =?UTF-8?Q?Re=3A_is_primary_key=28_foo=2C_bar=29_the_same_as_primary_ke?= =?UTF-8?Q?y_=28_foo_=29_with_a_=E2=80=98set=27_of_bars=3F?= To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=047d7b5d8693376b9d050bb07166 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b5d8693376b9d050bb07166 Content-Type: text/plain; charset=UTF-8 On Fri, Jan 2, 2015 at 1:13 PM, Eric Stevens wrote: > > And also stored entirely for each UPDATE. Change one element, > re-serialize the whole thing to disk. > > Is this true? I thought updates (adds, removes, but not overwrites) > affected just the indicated columns. Isn't it just the reads that involve > reading the entire collection? This is not true (with one minor exception). All operations on sets and maps require no reads. The same is true for appends and prepends on lists, but delete and set operations on lists with (non-zero) indexes require the list to be read first. However, the entire list does not need to be re-written to disk. -- Tyler Hobbs DataStax --047d7b5d8693376b9d050bb07166 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= On Fri, Jan 2, 2015 at 1:13 PM, Eric Stevens <mightye@gmail.com> wrote:
>= =C2=A0And also stored entirely for each UPDA= TE. Change one element, re-serialize the whole thing to disk.
<= div>
Is this true?=C2=A0 I thought updates (adds, removes, = but not overwrites) affected just the indicated columns.=C2=A0 Isn't it= just the reads that involve reading the entire collection?
This is not true (with one minor ex= ception).=C2=A0 All operations on sets and maps require no reads.=C2=A0 The= same is true for appends and prepends on lists, but delete and set operati= ons on lists with (non-zero) indexes require the list to be read first.=C2= =A0 However, the entire list does not need to be re-written to disk.

--
Tyler Hobbs
DataStax
<= /div>
--047d7b5d8693376b9d050bb07166--