couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Cohnen <>
Subject Re: Python view server and fractions
Date Wed, 25 Nov 2009 15:17:21 GMT
Hey Metin,

On 25.11.2009, at 14:54, Metin Akat wrote:

> 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?

I've never tried couchdb-python's view server. but basically all view servers are "simple"
processes talking via stdin/stdout to couchdb. so I don't see a reason why you cannot import
a library "globally". Also keep in mind that the view server process is not spawned every
time a view is called.
View raw message