Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2B9FB200D10 for ; Sat, 26 Aug 2017 08:11:19 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2A28116DB12; Sat, 26 Aug 2017 06:11:19 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6F78116DB11 for ; Sat, 26 Aug 2017 08:11:18 +0200 (CEST) Received: (qmail 13957 invoked by uid 500); 26 Aug 2017 06:11:17 -0000 Mailing-List: contact user-help@kudu.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@kudu.apache.org Delivered-To: mailing list user@kudu.apache.org Received: (qmail 13921 invoked by uid 99); 26 Aug 2017 06:11:16 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Aug 2017 06:11:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 1FC80C1D9B for ; Sat, 26 Aug 2017 06:11:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.479 X-Spam-Level: ** X-Spam-Status: No, score=2.479 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=paf-com.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id F50jjoXWMDL5 for ; Sat, 26 Aug 2017 06:11:13 +0000 (UTC) Received: from mail-oi0-f52.google.com (mail-oi0-f52.google.com [209.85.218.52]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 20ABE5FB76 for ; Sat, 26 Aug 2017 06:11:13 +0000 (UTC) Received: by mail-oi0-f52.google.com with SMTP id k77so13846606oib.2 for ; Fri, 25 Aug 2017 23:11:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=RmaHAQVBVBFhkNsQaashYseHFRPxXkSQsc+980dwfjw=; b=VgNOTv1LpcXXys8jG0fUT4pRN6egBmWTO05mF2WXZEVV+om3iW9WV68rnvsGu061UQ szyvLOZB4JtWaqLhKVFdPUADfsWOSUKezfkOT/gWY7BUSmgww2TjB/DLzya8eLPwCQnC VmKSLoRXBvJA+zz4H5LNAmxu1IkmwmFyPi4iqcVSMIm4FzaeZJeQ5OJzHfpTuAEfTm9X qOw+lcBzfFs5F9o67aFQS/JFcLf2PlR95OK314jyaR1C0fTmgzZfN8Kk+Tl1O64C5SF9 H2HgxIuzmXrZE7wJc8O6JVHilDbYSGLFesGQiEVhfSV9+uGHZdc1pkA2gZqLZH32PH+F MQnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=RmaHAQVBVBFhkNsQaashYseHFRPxXkSQsc+980dwfjw=; b=QNUQbZbrdDvDNZyMncrn3BGMpUBjfDgOdivEdInKHOjaf5EvuXWRKAW4CGqmHgCmqf J4inWxc44WvfvA4Tcfio2RTHZM+2wnAbX1QGH0m4wFMbtlJ+CYHLMAgMk94ve2EfmPqn f/p4sEzFrqvuDq+ODvKAVLyXu+3AQv4GCE5oTrF/2F+AwZwSmG3xi4AZcXlHA3kbWBIW rd0WtaNtyVzGRRpxLwoFWqeKs8p7dF9BF0OVMmGCIEN2bU8JFeSN5EZc40icisP8/3Nx Ka/6eZw9sj6lAmaviyHF+peILGUAQaGfSXuWaeU4oGcCU4/U+dlf4XJCES4ke0/DQaQE 2ymw== X-Gm-Message-State: AHYfb5g0WokYj0vCfkfZjSbCq2GwbkAOj5n51UAPZ0JjdePTreagNUXn XUvqAm1LftFm3T/ua2vsWJcE3o9o1hUCaug= X-Received: by 10.202.178.70 with SMTP id b67mr1184259oif.116.1503727871447; Fri, 25 Aug 2017 23:11:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.32.132 with HTTP; Fri, 25 Aug 2017 23:10:50 -0700 (PDT) From: Janne Keskitalo Date: Sat, 26 Aug 2017 09:10:50 +0300 Message-ID: Subject: Composite primary key To: user@kudu.apache.org Content-Type: multipart/alternative; boundary="001a113cd1889df8a10557a1ed9e" archived-at: Sat, 26 Aug 2017 06:11:19 -0000 --001a113cd1889df8a10557a1ed9e Content-Type: text/plain; charset="UTF-8" Hi We're inserting messages from kafka into kudu tables and some messages don't have a natural primary key, hence we decided to use kafka topic/partition/offset -combination as the key. Is it better to concatenate the fields into one kudu column or create a separate column for each? Do we get better compression if using individual columns? And is the PK index structure maintained outside of the actual table data? -- Br. Janne Keskitalo, Database Architect, PAF.COM For support: dbdsupport@paf.com --001a113cd1889df8a10557a1ed9e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi

We're inserting messages from ka= fka into kudu tables and some messages don't have a natural primary key= , hence we decided to use kafka topic/partition/offset -combination as the = key. Is it better to concatenate the fields into one kudu column or create = a separate column for each? Do we get better compression if using individua= l columns? And is the PK index structure maintained outside of the actual t= able data?

--
Br.
Janne Keskitalo,
Database Architect,=C2=A0PAF.COM
F= or support:=C2=A0dbdsupport= @paf.com

--001a113cd1889df8a10557a1ed9e--