CouchDB with Python under Ubuntu not working

2010-07-04 Thread Julian Moritz
Hi, I've installed couchdb-bin from lucid lynx repository and additionally installed couchdb via pip (and removed python-couchdb from my system). So I've got installed version 0.10.0 and 0.7. When I call the default temporary python view in futon, a window pops up and reads "Error: unknown_err

Re: Why I think view generation should be done concurrent.

2010-07-04 Thread Julian Moritz
Hi, Am Sonntag, den 04.07.2010, 10:28 -0700 schrieb J Chris Anderson: > On Jul 4, 2010, at 10:24 AM, Julian Moritz wrote: > > > Hi, > > > > Am Sonntag, den 04.07.2010, 09:37 -0700 schrieb J Chris Anderson: > >> On Jul 4, 2010, at 9:21 AM, Julian Moritz wrote: > >> > >>> Am Sonntag, den 04.07.20

Re: Why I think view generation should be done concurrent.

2010-07-04 Thread J Chris Anderson
On Jul 4, 2010, at 10:24 AM, Julian Moritz wrote: > Hi, > > Am Sonntag, den 04.07.2010, 09:37 -0700 schrieb J Chris Anderson: >> On Jul 4, 2010, at 9:21 AM, Julian Moritz wrote: >> >>> Am Sonntag, den 04.07.2010, 07:10 -0700 schrieb J Chris Anderson: >>> > reduce.py is: > > def fu

Re: Why I think view generation should be done concurrent.

2010-07-04 Thread Julian Moritz
Hi, Am Sonntag, den 04.07.2010, 09:37 -0700 schrieb J Chris Anderson: > On Jul 4, 2010, at 9:21 AM, Julian Moritz wrote: > > > Am Sonntag, den 04.07.2010, 07:10 -0700 schrieb J Chris Anderson: > > > >>> reduce.py is: > >>> > >>> def fun(key, value, rereduce): > >>> return True > >>> > >> >

Re: Why I think view generation should be done concurrent.

2010-07-04 Thread J Chris Anderson
On Jul 4, 2010, at 9:21 AM, Julian Moritz wrote: > Am Sonntag, den 04.07.2010, 07:10 -0700 schrieb J Chris Anderson: > >>> reduce.py is: >>> >>> def fun(key, value, rereduce): >>> return True >>> >> >> You should remove this reduce function. It's not doing you any good and it's >> burning

Re: 0.11, lists: How to set the Content-Type?

2010-07-04 Thread Alux
Hi Jan, many thanks. It works now. I had even read the example from the otherfun section, but was somehow not able to recognise it as solution to my problem. Thanks, alux On 4 July 2010 14:21, Jan Lehnardt wrote: > Hi Alux, > > On 4 Jul 2010, at 13:13, Alux wrote: > > > I understood that the l

Re: Why I think view generation should be done concurrent.

2010-07-04 Thread Julian Moritz
Am Sonntag, den 04.07.2010, 07:10 -0700 schrieb J Chris Anderson: > > reduce.py is: > > > > def fun(key, value, rereduce): > >return True > > > > You should remove this reduce function. It's not doing you any good and it's > burning up your CPU. Things will be much faster without it. > B

Re: Why I think view generation should be done concurrent.

2010-07-04 Thread J Chris Anderson
On Jul 4, 2010, at 2:36 AM, Julian Moritz wrote: > Hi, > > a few days ago I've tweeted a wish to have view generation done > concurrent. I'll tell you why (because @janl doesn't think so). > > I've got some documents in the form of: > > _id: 1, > _rev: 3-abc, > url: http://www.abc.com, > href

Re: wiki page "installing on ubuntu"

2010-07-04 Thread Jan Lehnardt
On 4 Jul 2010, at 14:59, cdr53x wrote: > On 07/01/2010 02:18 AM, Wendall Cada wrote: >> >> You can create an account and change it. :) > Done, added "system update" section in the additional notes ;) Looks good, thanks :) Cheers Jan --

Re: wiki page "installing on ubuntu"

2010-07-04 Thread cdr53x
On 07/01/2010 02:18 AM, Wendall Cada wrote: You can create an account and change it. :) Done, added "system update" section in the additional notes ;)

Re: 0.11, lists: How to set the Content-Type?

2010-07-04 Thread Jan Lehnardt
Hi Alux, On 4 Jul 2010, at 13:13, Alux wrote: > I understood that the lists element of a _design document may contain > functions that format a views result like the shows format single documents. > > Now I try to build a start page for my experimental application, for CouchDB > 0.11.0, and find

0.11, lists: How to set the Content-Type?

2010-07-04 Thread Alux
Hello, I understood that the lists element of a _design document may contain functions that format a views result like the shows format single documents. Now I try to build a start page for my experimental application, for CouchDB 0.11.0, and find no way to set the Content-Type. So I produce beau

Re: Error with couchdb 0.11

2010-07-04 Thread Francesco Mazzoli
It turns out that apparently portage (the gentoo package manager) messes up couchdb when upgrading. It was trying to load a file from v 0.10, so deleting avery couchdb file and reinstalling it worked. Thanks again to the IRC people (: -- Francesco On 3 July 2010 20:14, Francesco Mazzoli wrote:

Re: Why I think view generation should be done concurrent.

2010-07-04 Thread Sebastian Cohnen
AFAIK the current architectures does not play well with this approach. even if you have multiple concurrent view servers (and you have a a very fast storge), the view itself need to be written to one file, and to one b-tree. so you could process the mapping faster, but the new bottleneck would b

Why I think view generation should be done concurrent.

2010-07-04 Thread Julian Moritz
Hi, a few days ago I've tweeted a wish to have view generation done concurrent. I'll tell you why (because @janl doesn't think so). I've got some documents in the form of: _id: 1, _rev: 3-abc, url: http://www.abc.com, hrefs: [http://www.xyz.com, http://www.nbc.com, ...,

RE: Problems inserting XML document into CouchDB 0.10.2 on CentOS 5.4

2010-07-04 Thread Nils Breunese
== XML == Remember that CouchDB uses JSON for documents. I think you have three options here: 1. Convert XML to a JSON document Instead of storing the XML you mentioned you could maybe transform your XML into JSON (not always easy, as attributes and subelements can clash, the other way around