Re: Snow Leopard and Spidermonkey not working

2009-11-03 Thread Senthilkumar Peelikkampatti
After deleting the /opt/local/lib/libjs.dylib and symlink from /usr/local/lib/libjs.dylib it worked. I think my path was skewed. Thanks. On Tue, Nov 3, 2009 at 11:54 PM, Senthilkumar Peelikkampatti < senthilkumar.peelikkampa...@gmail.com> wrote: > Making couchdb from source on Snow leopard failed

Re: Snow Leopard and Spidermonkey not working

2009-11-03 Thread Senthilkumar Peelikkampatti
Making couchdb from source on Snow leopard failed with following error, ld: warning: in /opt/local/lib/libjs.dylib, file is not of required architecture Undefined symbols: "_JS_GetStringBytes", referenced from: _JSValToChar in couchjs-couch_js.o "_JS_EvaluateUCScript", referenced from:

Re: Replication Status Messages

2009-11-03 Thread Zachary Zolton
Coolio, so how long should I wait for that status message to change locally before I start fretting? It's been the same for like a good 10 minutes, though I'm pushing to a remote couchy host on the intarwebs (FYI, my local database is 7.1MB compacted, has 756 docs and is at seq# 1318) On Tue

Re: Hanging replication (was Re: Replication Status Messages)

2009-11-03 Thread Nicholas Orr
Awesome - will make sure I Pull ;) Thanks, Nick On Wed, Nov 4, 2009 at 2:04 PM, Adam Kocoloski wrote: > Hi Nick, pulling attachments should be much better. It's able to use the > standalone attachment API and thus avoid the Base64 encoding overhead of the > push approach. The data is streame

Re: Hanging replication (was Re: Replication Status Messages)

2009-11-03 Thread Adam Kocoloski
Hi Nick, pulling attachments should be much better. It's able to use the standalone attachment API and thus avoid the Base64 encoding overhead of the push approach. The data is streamed directly to the DB file, so the whole attachment never needs to fit in memory. Best, Adam On Nov 3, 2

RE: Performance issue

2009-11-03 Thread Sebastian Negomireanu
The issue is not sending documents in batches, but the extremely slow insertion of individual documents. I think that a large amount of use cases involve working with a single document instead of batches. There is no way in the world an end user would cope with a 5 second response time for a simple

Re: Hanging replication (was Re: Replication Status Messages)

2009-11-03 Thread Nicholas Orr
What about pulling attachments? I'm getting real close to shoving attachments into my docs and would like to be able to replicate the docs with attachments Nick On Wed, Nov 4, 2009 at 12:47 PM, Adam Kocoloski wrote: > Thanks Matt & Matt, we should put a big warning sticker on the replicato

RE: Performance issue

2009-11-03 Thread Sebastian Negomireanu
Thank you for clearing things up. Now I have a starting point for fixing this. Best regards, Sebastian Negomireanu | CTO / Managing Partner JustDesign Sibiu, Romania +40-726-181186 | +40-788-757462 sebastian.negomire...@justdesign.ro SC JustDesign SRL | Str. Dorului 20, 550352, Sibiu, Romania +4

Re: Best way to upgrade from 0.9.1 to 0.10.0

2009-11-03 Thread Larry
Great, Thanks for the tip. Also for anyone else out there that may be upgrading, I am running Debian 5 (lenny) and the latest Erlang package will not work with 0.10.0 so you need to build it from source (erlang.org). Things went smoothly for my by doing: 1. remove $PREFIX/lib/couchdb (for me

Re: Performance issue

2009-11-03 Thread Alex P
sebastian - try a windows-native build of couch, to eliminate the virtualization as a potential culprit. i've used [1] with good results thanks, alex. [1] http://markmail.org/message/jilbqz4jwt4xxsmw On Tue, Nov 3, 2009 at 3:35 PM, Sebastian Negomireanu < sebastian.negomire...@justdesign.ro> w

Replication Status Messages

2009-11-03 Thread Zachary Zolton
Howdy, I've been watching a push replication in Futon that's been crunching for a while with the following message: "W Processed source update #176" Does this mean that the remote server has process my local revisions up to sequence number 176? Also, should I be able to see an active task, or som

Re: Performance issue

2009-11-03 Thread Brian Candler
On Tue, Nov 03, 2009 at 11:07:53PM +0200, Sebastian Negomireanu wrote: > Here is the pcap. Thanks, nicely readable by $ tcpdump -r couchdb.pcap -n -s0 -X tcp port 5984 | less >From this, it is very clear that the delays are at the client side. I summarise this as: 20:22:18.126308 client HEAD req

Re: Performance issue

2009-11-03 Thread Jan Lehnardt
On 3 Nov 2009, at 23:06, Brian Candler wrote: On Tue, Nov 03, 2009 at 11:07:53PM +0200, Sebastian Negomireanu wrote: Here is the pcap. Thanks, nicely readable by $ tcpdump -r couchdb.pcap -n -s0 -X tcp port 5984 | less From this, it is very clear that the delays are at the client side. I su

Re: Performance issue

2009-11-03 Thread Brian Candler
On Tue, Nov 03, 2009 at 10:37:43PM +0200, Sebastian Negomireanu wrote: > I've attached the whole HTTP conversation. It would be much more useful packet-by-packet and with timestamps. Could you post the original pcap file somewhere? Or at least something similar to tcpdump -X output?

Re: all_or_nothing=true and replication

2009-11-03 Thread Brian Candler
On Tue, Nov 03, 2009 at 09:44:44AM -0500, Adam Kocoloski wrote: >> On a related point: is it possible to configure a database to stop >> people >> *pulling* certain documents? For example, if I want to allow people to >> read >> and replicate user documents but not _design documents? > > Not at

Re: Replication Status Messages

2009-11-03 Thread Adam Kocoloski
Yeah, that's too long, something seems to have gone south. If possible I'd try restarting CouchDB and then the replication. Best, Adam On Nov 3, 2009, at 3:37 PM, Zachary Zolton wrote: Coolio, so how long should I wait for that status message to change locally before I start fretting? It's

Re: Best way to upgrade from 0.9.1 to 0.10.0

2009-11-03 Thread Paul Davis
Larry, You should remove the $PREFIX/lib/couchdb directory before make install. Theoretically installing over top should work except Erlang collates 0.9.0 to be a more recent version that 0.11.0 which causes weird errors. Paul Davis On Tue, Nov 3, 2009 at 12:22 PM, Larry wrote: > Assuming I hav

Using spidermonkey xpath feature to extract properties in map() function

2009-11-03 Thread François Visconte
Hi, Would it be possible to use the spidermonkey xpath feature to extract information from xml blobs stored in a document field. I have to store xml blobs and to be able to select a property of this blob accessible throught an xpath request. I think there is two way to do that: - extract the desi

RE: Performance issue

2009-11-03 Thread Sebastian Negomireanu
After monitoring with Wireshark, it seems that there aren't any other operations happening at the same time. I've attached the whole HTTP conversation. As you can see from the http dump, I check if the test database exists, drop it, recreate it, add two views to it and then add a document. This w

Re: Performance issue

2009-11-03 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sebastian Negomireanu wrote: > The issue is not sending documents in batches, but the extremely slow > insertion of individual documents. You still haven't included a packet capture that has timings. Without that we can't tell how long the actual Cou

Re: Replication Status Messages

2009-11-03 Thread Adam Kocoloski
On Nov 3, 2009, at 3:23 PM, Zachary Zolton wrote: Howdy, I've been watching a push replication in Futon that's been crunching for a while with the following message: "W Processed source update #176" Does this mean that the remote server has process my local revisions up to sequence number 176?

RE: Performance issue

2009-11-03 Thread Sebastian Negomireanu
This was initially my setup. I thought that maybe there's an issue with the windows release (because I know it didn't use to be fully supported). That was the reason I've tried to setup the Ubuntu VirtualBox machine to test the performance. In both scenarios I get the same results. I can only imagi

Re: Hanging replication (was Re: Replication Status Messages)

2009-11-03 Thread Matt Aimonetti
I also experienced the same problems with replication + attachments. - Matt On Tue, Nov 3, 2009 at 4:51 PM, Matt Goodall wrote: > 2009/11/3 Adam Kocoloski : > > Yeah, that's too long, something seems to have gone south. If possible > I'd > > try restarting CouchDB and then the replication. Be

Re: Hanging replication (was Re: Replication Status Messages)

2009-11-03 Thread Adam Kocoloski
Thanks Matt & Matt, we should put a big warning sticker on the replicator saying "don't push attachments" :( Getting push replication to efficiently handle attachments is a blocker for the next release as far as I'm concerned. Best, Adam On Nov 3, 2009, at 7:58 PM, Matt Aimonetti wrote:

Hanging replication (was Re: Replication Status Messages)

2009-11-03 Thread Matt Goodall
2009/11/3 Adam Kocoloski : > Yeah, that's too long, something seems to have gone south.  If possible I'd > try restarting CouchDB and then the replication.  Best, I've also been experiencing similar problems with replication hanging recently so I set about reproducing it tonight. In the end it wa

Best way to upgrade from 0.9.1 to 0.10.0

2009-11-03 Thread Larry
Assuming I have the breaking changeshandled in my app, when I upgrade the actual server to 0.10.0 can I just run the configure, make & make install right on top of the current 0.9.1 install? Should I preform some sort of uninstall first? Thanks lar

Re: Building SVN on OS X fails

2009-11-03 Thread Blair Zajac
Just use MacPorts to do the build. It's worked very well for me. http://www.macports.org/ Regards, Blair On Nov 3, 2009, at 6:15 AM, Alistair Young wrote: I've just built erlang R13B02-1 on OS X: ./configure --prefix=... touch lib/wx/SKIP make make install if you don't skip widgets it won'

Re: CouchDB in a sub directory of apache

2009-11-03 Thread Alistair Young
thanks for that Paul. As you say, the subdir works ok, it's just futon. If that's the case I can live with that. cheers, Alistair -- mov eax,1 mov ebx,0 int 80h On 3 Nov 2009, at 15:19, Paul Davis wrote: Alistair, I've been proxying to a subdirectory of nginx with only the caveat that

Re: CouchDB in a sub directory of apache

2009-11-03 Thread Paul Davis
Alistair, I've been proxying to a subdirectory of nginx with only the caveat that Futon doesn't work. When I want Futon I just use an SSH internal tunnel or some such. Paul Davis On Tue, Nov 3, 2009 at 6:53 AM, Alistair Young wrote: > Hi there, > > is it possible to run couchdb in a sub directo

Re: CouchDB doesn't work for me

2009-11-03 Thread James R. Leek
What are you using then ? And what is the log error ? Chaos linux 4, which is based on RedHat 5 I think. Linux 2.6.18 anyway. I couldn't find any log error. The logs appear to be empty. I may be looking in the wrong place, but when I built with make dev I looked in tmp/log and tmp/run

Re: all_or_nothing=true and replication

2009-11-03 Thread Adam Kocoloski
On Nov 3, 2009, at 4:43 AM, Brian Candler wrote: On Sun, Nov 01, 2009 at 05:36:18PM -0500, Damien Katz wrote: Yes, you can make a situation where somehow a user has legal updates to certain conflicts, but not others, on a particular node A. On some other node B, somehow the security was diff

Re: Building SVN on OS X fails

2009-11-03 Thread Alistair Young
I've just built erlang R13B02-1 on OS X: ./configure --prefix=... touch lib/wx/SKIP make make install if you don't skip widgets it won't build on OS X. Alistair -- mov eax,1 mov ebx,0 int 80h On 3 Nov 2009, at 14:03, Jan Lehnardt wrote: On 3 Nov 2009, at 14:43, Sebastian Brueckner w

Re: Performance issue

2009-11-03 Thread Robert Newson
One thing that snagged me one time was a client that sent "Expect: Continue" header. There was a time when couchdb didn't recognize this case-insensitively. For me, this caused a two second delay to all requests. B. On Tue, Nov 3, 2009 at 1:34 PM, Sebastian Negomireanu wrote: > I am connecting t

Re: Building SVN on OS X fails

2009-11-03 Thread Jan Lehnardt
On 3 Nov 2009, at 14:43, Sebastian Brueckner wrote: Hi, I am trying to build CouchDB (both 0.10 and SVN trunk) on OS X Snow Leopard. I am using erlang 12b-0-1 and support libraries from the Fink repository. Except icu4c 4.2.1 which I built and installed from source. Your Erlang is too

Building SVN on OS X fails

2009-11-03 Thread Sebastian Brueckner
Hi, I am trying to build CouchDB (both 0.10 and SVN trunk) on OS X Snow Leopard. I am using erlang 12b-0-1 and support libraries from the Fink repository. Except icu4c 4.2.1 which I built and installed from source. During make I get the following errors (same for 0.10 and SVN): [...] Making

RE: Performance issue

2009-11-03 Thread Sebastian Negomireanu
I am connecting to the database from my .NET application (which uses Divan as a library). But I've put it through a profiler and I get the large delay when waiting for the response from the database. The time needed to run the application itself (prepare the JSON message, parse the response etc.) i

Re: Performance issue

2009-11-03 Thread Robert Newson
What HTTP client are you using? On Tue, Nov 3, 2009 at 11:06 AM, Sebastian Negomireanu wrote: > Ok I will try that and come back with results. > > > Best regards, > Sebastian Negomireanu | CTO / Managing Partner JustDesign Sibiu, Romania > +40-726-181186 | +40-788-757462 > sebastian.negomire...@j

Testing shows and lists

2009-11-03 Thread Vlad GURDIGA
Hello! How would someone test the application code inside shows and lists? Is there any recommended way or some best-practice? The actual page is probably more practical to test inside the browser with something like QUnit. But, before uploading the show to CouchDB I'd like to make sure it does n

CouchDB in a sub directory of apache

2009-11-03 Thread Alistair Young
Hi there, is it possible to run couchdb in a sub directory behind Apache? ProxyPass /couchdb/ http://localhost:5984/ nocanon ProxyPassReverse /couchdb/ http://localhost:5984/ but the page links bypass the proxy: clicking on the Configuration link on the /_utils/ page: http://domain.com/couchdb

RE: Performance issue

2009-11-03 Thread Sebastian Negomireanu
Ok I will try that and come back with results. Best regards, Sebastian Negomireanu | CTO / Managing Partner JustDesign Sibiu, Romania +40-726-181186 | +40-788-757462 sebastian.negomire...@justdesign.ro SC JustDesign SRL | Str. Dorului 20, 550352, Sibiu, Romania +40-269-210008 | off...@justdesign

Re: Performance issue

2009-11-03 Thread kosta
Hello, I am encountering a big performance problem with CouchDB. I get response times around 500ms (and sometimes more). I've tried simple operations like adding a very minimal document (about 5 fields, a total payload of max 0.5 KB / doc). I've also tried the operation while running it in a l

Re: Performance issue

2009-11-03 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sebastian Negomireanu wrote: > In both scenarios, I get response times around 500ms In these kind of situations I am a big fan of using Wireshark to see exactly what the response time is. There could be all sorts of funky stuff going on such as proxy

Performance issue

2009-11-03 Thread Sebastian Negomireanu
Hello, I am encountering a big performance problem with CouchDB. I've tried it both on Windows and on an Ubuntu server 9.10 virtual machine. In both scenarios, I get response times around 500ms (and sometimes more). I've tried simple operations like adding a very minimal document (about 5 fiel

Re: all_or_nothing=true and replication

2009-11-03 Thread Brian Candler
On Sun, Nov 01, 2009 at 05:36:18PM -0500, Damien Katz wrote: > Yes, you can make a situation where somehow a user has legal updates to > certain conflicts, but not others, on a particular node A. On some other > node B, somehow the security was different and he was allowed to update > all the do

Re: Running couchdb on ubuntu 8.04 LTS

2009-11-03 Thread Brian Candler
On Sun, Nov 01, 2009 at 09:51:00PM +0100, Jens wrote: > I just tried to install couchdb on ubuntu 8.04. I have it working just fine under Hardy. You need to: (1) Install erlang using the packages from Jaunty (probably Karmic would work, I haven't tried it myself). Follow the instructions at http:

Re: all_or_nothing=true and replication

2009-11-03 Thread Brian Candler
On Sun, Nov 01, 2009 at 05:36:18PM -0500, Damien Katz wrote: > It's intentional behavior. Documents are meant to be independent, even > conflicts.. ... > However, if you doing this as a VCS where you keep all the diffs, then > simply put the edit history as diffs into even the deleted documents

Re: Question to view generation and concurrent queries

2009-11-03 Thread Hong-Linh Ly
Thanks a lot! Original-Nachricht > Datum: Mon, 2 Nov 2009 09:02:14 -0500 > Von: Paul Davis > An: user@couchdb.apache.org > Betreff: Re: Question to view generation and concurrent queries > On Mon, Nov 2, 2009 at 8:54 AM, wrote: > > Hi! > > > > I have a question concerning the