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 BEF64200B7C for ; Thu, 8 Sep 2016 20:12:41 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BD99D160ABD; Thu, 8 Sep 2016 18:12:41 +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 CB536160AAD for ; Thu, 8 Sep 2016 20:12:40 +0200 (CEST) Received: (qmail 29507 invoked by uid 500); 8 Sep 2016 18:12:39 -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 29497 invoked by uid 99); 8 Sep 2016 18:12:39 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Sep 2016 18:12:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id CF9CA180688 for ; Thu, 8 Sep 2016 18:12:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id L6j6m6LatPdg for ; Thu, 8 Sep 2016 18:12:36 +0000 (UTC) Received: from mail-ua0-f177.google.com (mail-ua0-f177.google.com [209.85.217.177]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id B1F475F369 for ; Thu, 8 Sep 2016 18:12:35 +0000 (UTC) Received: by mail-ua0-f177.google.com with SMTP id 95so23522033uaz.2 for ; Thu, 08 Sep 2016 11:12:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=gXYBHq89dijsxLRSucGZ1mUdivGdFkqkjEpWxNRN8ZQ=; b=tmzj8Pyd/rlNvn9tk6XAKQyf87IuUbuXTmcfI3K3cMZTA7T/9lpcnP8LWo/Zfc+gdK TO5j6+b+lI492qIV/Z9DaCXlw1zpR/sh78/MAUyQy/8lCEeJPUnhbNkKJnH1hCO+jSx9 8h1fE25TS8kU2vLDHc4QvC9yeitK+Wd9AOKe4F9OOUiiDtI1DWCR/RUYm54WIDSHbbgg iXAkOOxLmd6Ti2qeXe1SLZ6nNNo1LM12CNznR3PNnBE3WuYJaKSr7htKESDra6t9pUmx EmFrVBVcOWbaNjJzSCmDNkD4TU3orET1nZx3p1Rgzxn9jFOL/RFRGHQg3RQSBQ38k1Pz b7/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=gXYBHq89dijsxLRSucGZ1mUdivGdFkqkjEpWxNRN8ZQ=; b=kG2iIxrQ4wQv+abUR0q5fMv0eCq6ILc4p59uoEfRMxvkLw6jpppDZxnD6kDQ2wWrn6 gVdmSv/OEIuE5deBVxbG9hUmfgPpzbXLgXh7TFsDe+8GijH8Wu1qK+Cw1jsZq19FX2P+ 72iBPF7it+M7FbBB93A6jn8T3vrlePD5FKlP8TfwbkaENjNuUvcwHnChvzfGsLSKMbKC F55l1b7VKL9NLScnEbxU+hNTakwZOnNW35mNXzezWSTtYPN6WEcKKiEwar6HJ4UizDqa 14n7YJaky8Wqu/abkmrFqhY7OIDMd2FAv81sWV4EwCuspLf8UWZX/MP+8oDrhQio77I2 9fLQ== X-Gm-Message-State: AE9vXwOJCLJsQak1nd8lk8JLscgaK6CArjPLx2XaDlv7B9m1UZMnhTZkmSt0591/LlR9SWZokcNFn2mqGoaI6g== X-Received: by 10.176.2.163 with SMTP id 32mr831133uah.7.1473358348624; Thu, 08 Sep 2016 11:12:28 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Oleksandr Petrov Date: Thu, 08 Sep 2016 18:12:17 +0000 Message-ID: Subject: Re: Overhead of data types in cassandra To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a113725deff2b5a053c02f882 archived-at: Thu, 08 Sep 2016 18:12:41 -0000 --001a113725deff2b5a053c02f882 Content-Type: text/plain; charset=UTF-8 You can find the information about that in Cassandra source code, for example. Search for serializers, like BytesSerializer: https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/serializers/BytesSerializer.java to get an idea how the data is serialized. But I'd also check out classes like Cell and SSTable structure to get an overview on what's the data layout. On Thu, Sep 8, 2016 at 4:23 AM Alexandr Porunov wrote: > Hello, > > Where can I find information about overhead of data types in cassandra? > I am interested about blob, text, uuid, timeuuid data types. Does a blob > type store a value with the length of the blob data? If yes then which type > of the length it is using (int, bigint)? > If I want to store 80 bits how much of disk space will be used for it? If > I want to store 64 bits is it better to use bigint? > > Sincerely, > Alexandr > -- Alex Petrov --001a113725deff2b5a053c02f882 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

Where can I find informatio= n about overhead of data types in cassandra?
I am interested about blob, text, uuid, timeuuid data type= s. Does a blob type store a value with the length of the blob data? If yes = then which type of the length it is using (int, bigint)?=C2=A0
If I want to store 80 bits how much of d= isk space will be used for it? If I want to store 64 bits is it better to u= se bigint?

Sincerely,
Alexandr
--
Alex Petrov
--001a113725deff2b5a053c02f882--