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 ABD7B200B52 for ; Mon, 25 Jul 2016 09:18:58 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AA8FB160A7D; Mon, 25 Jul 2016 07:18:58 +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 F14C9160A78 for ; Mon, 25 Jul 2016 09:18:57 +0200 (CEST) Received: (qmail 28859 invoked by uid 500); 25 Jul 2016 07:18:57 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 28847 invoked by uid 99); 25 Jul 2016 07:18:56 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jul 2016 07:18:56 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 6B955C0D01 for ; Mon, 25 Jul 2016 07:18:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.198 X-Spam-Level: * X-Spam-Status: No, score=1.198 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_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id gSTabZOaCVzb for ; Mon, 25 Jul 2016 07:18:54 +0000 (UTC) Received: from mail-vk0-f47.google.com (mail-vk0-f47.google.com [209.85.213.47]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 0D1575F1F5 for ; Mon, 25 Jul 2016 07:18:53 +0000 (UTC) Received: by mail-vk0-f47.google.com with SMTP id x130so232367102vkc.0 for ; Mon, 25 Jul 2016 00:18:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=SA3tGhskeaWJB0cBI1sQVDTjEjCNoMl0lhpScazvWrI=; b=wViCyW81FA3Pcb6PFO8cGox7s3oxj/MN3JyFSScaUb1K6uRMb6kEPg4tyGcUbPI2y9 yRHIE6kKFs7UGkYORleA0BFFAfxZ7IdSDpXiuidpTg5JXoILhCXp4YDEtcuZnTY+dI84 LmX0p0HiZSDEyumJcSL4tgiLrXdp0OYxlzAuJ2aBLzHf+UDMOueh6WBIWhEMemhRA15+ RJ1qo2NCxyGl0xtgyngN/M4efew9pZ9I6xwdvqlIMhFR42wLKbLUCh8aoJpHYwc3077j xiGyxCht35/1QFd7sJwtkgKLhu56ppVwPm8aAcoGTKEnvlDN4XiDO2qXFKDRjwvBQ2VQ XG2w== 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; bh=SA3tGhskeaWJB0cBI1sQVDTjEjCNoMl0lhpScazvWrI=; b=OfwxnxwhvmRlXoo+3gQlAMepArE9juou+DKnWes/m2+TE4FS46BM0HoXNm4ddOjdcV ExakKqKFzA/DxdryFwZJYQx5x+PYQEtW2WRVP+Z4MH4wk0gXEwBHg68ryhQdWxClEuXy vZXuHKOwwl5FmYwY0jvK+pjWwaYBrgaNpu8i2DJK+/KEdCHsrlz4n3cLaX5RKCOIWXEF z5JbWwNy4Yjef9dqIhE+95Eb8OMQ9jADhRNgm8uk9/pfZPOZI86ZGRum5AwwPDCM4pJn qa52s4JlqpQcJ/rT6KvFzL84wl9dUis9KWTorpsC4E/VJwZlxrhHpt5j5f/wwst38GT5 lmmg== X-Gm-Message-State: AEkooutRJqtzP0/N/2WjIaqron1J32iouDyaE5FDjB5I0VmVjUeZLMyEBFgkwhvl/VEoyCa38QVbfjZy5Q9Bog== X-Received: by 10.159.39.36 with SMTP id a33mr7617965uaa.33.1469431132835; Mon, 25 Jul 2016 00:18:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.49.2 with HTTP; Mon, 25 Jul 2016 00:18:13 -0700 (PDT) In-Reply-To: References: From: Sergi Vladykin Date: Mon, 25 Jul 2016 10:18:13 +0300 Message-ID: Subject: Re: Data compression in Ignite 2.0 To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary=94eb2c0480e2b1d5450538709881 archived-at: Mon, 25 Jul 2016 07:18:58 -0000 --94eb2c0480e2b1d5450538709881 Content-Type: text/plain; charset=UTF-8 This will make sense only for rare cases when you have very large objects stored, which can be effectively compressed. And even then it will introduce slowdown on all the operations, which often will not be acceptable. I guess only few users will find this feature useful, thus I think it does not worth the effort. Sergi 2016-07-25 9:28 GMT+03:00 Alexey Kuznetsov : > Hi, All! > > I would like to propose one more feature for Ignite 2.0. > > Data compression for data in binary format. > > Binary format is stored as field name + field data. > So we have a description. > How about to add one more byte to binary data descriptor: > > *Compressed*: > 0 - Data stored as is (no compression). > 1 - Data compressed by dictionary (something like DB2 row compression [1], > but for all binary types). We could have system or user defined replicated > cache for such dictionary and *cache.compact()* method that will scan > cache, build dictionary and compact data. > 2 - Data compressed by Java built in ZIP. > 3 - Data compressed by some user custom algorithm. > > Of course it is possible to compress data in current Ignite 1.x but in this > case compressed data cannot be accessed from SQL engine, if we implement > support for compression on Ignite core level SQL engine will be able to > detect that data is compressed and properly handle such data. > > What do you think? > If community consider this feature useful I will create issue in JIRA. > > [1] > > http://www.ibm.com/developerworks/data/library/techarticle/dm-1205db210compression/ > > -- > Alexey Kuznetsov > --94eb2c0480e2b1d5450538709881--