Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 79087 invoked from network); 18 Dec 2010 02:20:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Dec 2010 02:20:15 -0000 Received: (qmail 65518 invoked by uid 500); 18 Dec 2010 02:20:13 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 65449 invoked by uid 500); 18 Dec 2010 02:20:13 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 65441 invoked by uid 99); 18 Dec 2010 02:20:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Dec 2010 02:20:13 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [76.13.13.44] (HELO smtp105.prem.mail.ac4.yahoo.com) (76.13.13.44) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 18 Dec 2010 02:19:42 +0000 Received: (qmail 56922 invoked from network); 18 Dec 2010 02:19:21 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=DKIM-Signature:Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding; b=1ecs4EAvkdmqx5kf4iD9udh10RGG60pt4dw7q2e+5VsLeUKNKCoapjNiw18mnCJEpwJoXss9rRe3uxUl9uTku0dWbNvpVKFILVUEgB1NeuWAknz6wRev0bqN9vkWcTgVtA+vwSKxFfEAHe71mHPJ/zqOE6B248aqKAFCF9N5Qv0= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1292638761; bh=tm0GwNquRF46X10qyAWtqnFW3pCg+Aiacx442GBZII0=; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding; b=5GC9kdDNkLmoflljw0XIz/TCLcahbYkSlWEObHYQYGg6eF1jcpMLuiXshEvowDECIaMqBWUNZQ+0kV4g+7f4DICO7hkWpv781EvbQsHPFlSAvI/gU9zRcpjiAUkgfMOYoDoQVsSaGwYhlv/oLGUr/gFRNPXYh+PuomyMlKXa7zI= Received: from MacDaddy.local (csj790@98.207.50.174 with plain) by smtp105.prem.mail.ac4.yahoo.com with SMTP; 17 Dec 2010 18:19:20 -0800 PST X-Yahoo-SMTP: cbef2U2swBCtkSD6VBey7XQqDQ-- X-YMail-OSG: g6fwKP8VM1m7ZFxprwsJjCqEs6gXbh7z.XJ8JV1QjPQvNwm KxyWCFKkLbVXgzH1.EH0i7OitM7d0wUBQJhzaQ7khp.D.TOMq05I0qExZPun tgRlsVW8Px3baTsU1HEQvasvV7lMlVGFJxO8zQKoJVmmMf6eq_kfTWRqmp2R EIk0fDTNNLQIOSRCln7LEbxbTsI21rdefdUuPj9BIYjfuOhzqeMvae2kzWLw sVpNKg8O1qxEKls..DwrxpJLS1MX0yO5vQHJU8DLrYuu3hADCn3Q6ouigrD0 6aTMqMbmNwt34JyJOQTsr_0EupLNh9BhXeVnythXSlF1eqtM2U8_kBG0tXf6 EelKaobiBLJ7ypl3Nnzzs3SjjcXHUShvSDvTtfkJK X-Yahoo-Newman-Property: ymail-3 Message-ID: <4D0C1A25.8080703@yahoo.com> Date: Fri, 17 Dec 2010 18:19:17 -0800 From: Chris Johnson User-Agent: Postbox 2.1.0 (Macintosh/20101209) MIME-Version: 1.0 To: user@couchdb.apache.org Subject: Database size variation Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I have a script that logs into a firewall, exports the session table, parses it and writes a subset of the data to a database. Each session is a doc in the database. Currently, because of the way the database is exported, it is serialized and each doc is written to the database one by one. The database that is generated is extremely large. For example, the last database had 1.5M documents. As part of this process, the most recent database is replicated to another database witha known name. One thing I just noticed is the replicated database is significantly smaller in size. As an example, the database that I referred to above is 11+ Gig in size, but the replicated database is only 4 Gigs. Everything between the two databases appears to be consistent and the number records/update sequences are identical, so why such a variation in size? Chris