Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 57961 invoked from network); 1 Nov 2010 19:40:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Nov 2010 19:40:20 -0000 Received: (qmail 73366 invoked by uid 500); 1 Nov 2010 19:40:49 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 73333 invoked by uid 500); 1 Nov 2010 19:40:49 -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 73321 invoked by uid 99); 1 Nov 2010 19:40:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 19:40:49 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of email.workbench@gmail.com designates 209.85.161.52 as permitted sender) Received: from [209.85.161.52] (HELO mail-fx0-f52.google.com) (209.85.161.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 19:40:43 +0000 Received: by fxm12 with SMTP id 12so5115592fxm.11 for ; Mon, 01 Nov 2010 12:40:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=AlIJ1SIAngwrH6eN88JMYZMQrv3ho3R1ojuRglVr+ek=; b=j9LlPpoHxFhSUW3DHLuLn3uEx/618GVc6gf3NCvLSmGtmtw/AxXS7jNCZqAX2xO2HS 7ngGS+cDPdT7RRDg/GGVE0XU3+3WJmrWrpEM48UPk4+MsHmAy32PiGCCjoumfPpCjhwq X8dk4+6AT8zzR3/RyGmT8HPyBWZx7la3R0FCU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=r0xde/0wCuPbIuTWg4yNW8xGYuEyjUSIF+8vbjsc6kLoOPQIsW7CnyGc7BrfMWO7sA O3J//HvThXX4W5VLizzaVLZf2ZVcSvGaFHC1CxGnVr2AGCpUu8GX4q9aw8MXt86JDmdi sLfFyu5Uf7oTC0Q9S4n1qCFXsGZ7uKHzgnzH0= MIME-Version: 1.0 Received: by 10.223.81.78 with SMTP id w14mr4513976fak.5.1288640421874; Mon, 01 Nov 2010 12:40:21 -0700 (PDT) Sender: email.workbench@gmail.com Received: by 10.223.102.71 with HTTP; Mon, 1 Nov 2010 12:40:21 -0700 (PDT) Date: Mon, 1 Nov 2010 15:40:21 -0400 X-Google-Sender-Auth: 9sfxhV8GTnwdzbzhghiWUrN7Fm8 Message-ID: Subject: User app activity Logging From: Zdravko Gligic To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Hi Folks, I have a community use case where I need to track: a) user id b) user action c) doc._id e) date.time Wiki talks about short doc._id values making a huge difference on storage and performance. I am assuming that the same arguments also apply to view indexing as it uses the same b-tree indexing. Somewhere I have read that numeric values compare faster than strings, so I am thinking about using decimals for date.time in yymmdd.hhmmss format. Comments on this? For parts of the application, I need to keep track of all such logs in order to retain "user's slice" of what they have done. That is I would need to keep longer the ByUserId view, while ByDocId and/or ByDateTime views can be reduced for all of the logs that are older than x number of days. While it is somewhat of an open ended question, can you share some design suggestions? Thanks again, teslan