Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 48479 invoked from network); 16 Apr 2011 13:37:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Apr 2011 13:37:17 -0000 Received: (qmail 46035 invoked by uid 500); 16 Apr 2011 13:37:16 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 45991 invoked by uid 500); 16 Apr 2011 13:37:16 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 45984 invoked by uid 99); 16 Apr 2011 13:37:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Apr 2011 13:37:15 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [148.87.113.121] (HELO rcsinet10.oracle.com) (148.87.113.121) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Apr 2011 13:37:07 +0000 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p3GDaj1M028249 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 16 Apr 2011 13:36:47 GMT Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p3GDaigk000493 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 16 Apr 2011 13:36:44 GMT Received: from abhmt014.oracle.com (abhmt014.oracle.com [141.146.116.23]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p3GDahSU015311 for ; Sat, 16 Apr 2011 08:36:43 -0500 Received: from localhost (/188.113.85.108) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 16 Apr 2011 06:36:43 -0700 From: dag.wanvik@oracle.com (Dag H. Wanvik) To: "Derby Discussion" Subject: Re: Reducing disk footprint with compression (gzip?) References: <20110414185810.80833aa0908s9msi@messagerie.si.c-s.fr> Date: Sat, 16 Apr 2011 15:36:41 +0200 In-Reply-To: <20110414185810.80833aa0908s9msi@messagerie.si.c-s.fr> (BONNEFILLE Guilhem's message of "Thu, 14 Apr 2011 18:58:10 +0200") Message-ID: User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (usg-unix-v) MIME-Version: 1.0 Content-Type: text/plain X-Source-IP: acsmt356.oracle.com [141.146.40.156] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090201.4DA99B6C.00BE:SCFSTAT5015188,ss=1,fgs=0 BONNEFILLE Guilhem writes: > An other solution is to compress (gzip) old part of history as we > never need to update them. > > Is it possible to do this with Derby? Derby doesn't have any built-in compression facilities. You say you don't perform updates (or deletes), so presumingly there are no holes in your database files, so running compression wouldn't help[1]. Some ideas: Could you compress the lob contents before you insert them into the database and uncompress on retrieval? Could you store the lobs as compressed files and just let the database reference them? Did you consider a compressing file system? Thanks, Dag [1] http://db.apache.org/derby/docs/10.7/ref/rrefaltertablecompress.html http://db.apache.org/derby/docs/10.7/ref/rrefproceduresinplacecompress.html > Do you have any other tips when faced to this use case? > Any other (embedded) database that best matches our needs? > > Thanks for your answer. > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program.