Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 84078 invoked from network); 25 Nov 2009 13:55:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Nov 2009 13:55:01 -0000 Received: (qmail 13412 invoked by uid 500); 25 Nov 2009 13:55:00 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 13330 invoked by uid 500); 25 Nov 2009 13:54:59 -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 13320 invoked by uid 99); 25 Nov 2009 13:54:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2009 13:54:59 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of akat.metin@gmail.com designates 74.125.78.26 as permitted sender) Received: from [74.125.78.26] (HELO ey-out-2122.google.com) (74.125.78.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2009 13:54:57 +0000 Received: by ey-out-2122.google.com with SMTP id 4so750231eyf.41 for ; Wed, 25 Nov 2009 05:54:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=2Ruxbkd7G18vnPDphsCM8fD2R2N7ZOHUyBlvpV62ZMI=; b=RD0zM0aj4FfbHhkAphOyf1gRJH9el8WHcRTn/iJtYvZe6wtTN7Z4VkY8C6NFLpzbT4 4hB8riZ/ciB4tEWSopYCus30UYL/qXkHxs34PI/F14q6vg/CepdnJTy432BKT+ho0NXA K6qUQbB+vZGMaVKyHtwY5drPm+1590J+l7l3A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=nL/cvmdw31WvAflDc59F8dNByBYBg63LwN7UjNaEPJJnq4/qop5Xcx17Du0Jo1Zpfr lOnsUHCzm9kyUM9XbbbsDj1fZBf1uj1Dn8CP0FN9AEv3tqiJxf854c7ljbkzWor7qUl9 c5T3qDZrKTk2iA2WbUE1M705CS/xmZk+qvLgM= MIME-Version: 1.0 Received: by 10.216.87.71 with SMTP id x49mr2515382wee.11.1259157272906; Wed, 25 Nov 2009 05:54:32 -0800 (PST) Date: Wed, 25 Nov 2009 15:54:32 +0200 Message-ID: <98a246a10911250554v40531c8bte5e85d1430d8727a@mail.gmail.com> Subject: Python view server and fractions From: Metin Akat To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Dear All, Me and my colleagues are Python/Pylons programmers. During the last several months we have adopted CouchDB as our primary database management system. So far we are using javascript for writing views, but now we are considering seriously migration to couchdb-python's view server, mostly because of doing precise math with fractions (and long integers if needed). I have two questions: 1. I've read that the python view server is (much) slower/buggy etc. Have you used it in production? What's your experience? 2. I'd like to use the fractions module (part of the standard library) in my views. I know only one way to do it - import it inside the view (import it every time the view is called). Is there some way to import it "globally", so that it's always available to the views? Regards, Metin