RE: Macports OSX issues?

2011-04-07 Thread Nils Breunese
It does actually. But dependencies can be configured in the wrong way of course. If CouchDB needs Erlang with SSL, then the dependencies should reflect that. If they don't, it's a bug which should be reported to MacPorts. I use MacPorts for some applications, but for CouchDB on Mac OS X I just g

Re: Macports OSX issues?

2011-04-07 Thread Owen Davies
I believe that Mac Ports does not do dependency tracking like Linux package managers (correct me if I'm wrong, I'm not a Mac user, just had to solve this problem on a colleges Mac at work). Owen On 7 April 2011 23:36, Dave Cottlehuber wrote: > On 8 April 2011 09:41, Trevor Bain wrote: >>> Someo

Re: View advice

2011-04-07 Thread Olafur Arason
You can fake it if you want: function(doc) { if(doc.type == "Article" && (doc.location == "NY" || doc.location == "CA" )){ emit(["NYCA", doc.release_date], doc) } } Or join the discussion about why views should have search fields so this could be resolved once and for all. They it would

Re: View advice

2011-04-07 Thread Keith Gable
This, in my opinion, is a compelling reason to add unions (in the math sense). Take one query and merge the results with the results of another query on the same map function (and thus reduce). This is kind of like multiple startkeys and endkeys. I'd do the two queries you'd write and union

View advice

2011-04-07 Thread Pierre-Alexandre Lacerte
I am currently trying to create a view to reproduce this SQL query: SELECT * FROM articles WHERE articles.location="NY" OR articles.location="CA" ORDER BY articles.release_date DESC I tried to create a view with a complex key: function(doc) { if(doc.type == "Article") { emit([doc.location, doc.

Re: Macports OSX issues?

2011-04-07 Thread Dave Cottlehuber
On 8 April 2011 09:41, Trevor Bain wrote: >> Someone, recently, opened up a similar ticket to this in macports >> (for the erlang version error) and it was closed as fixed. So, I >> assumed that this wasn't the error (bad assumption). I guess the >> same problem happened again more recently - does

Re: change notifications question

2011-04-07 Thread Dave Cottlehuber
On 8 April 2011 05:43, Thomas Vander Stichele wrote: > Hi everyone, > > I am adding change notification support to paisley (twisted library for > couchdb) and am writing a simple client that sends GUI notifications for > changed documents. > > While doing so, I was wondering if anyone ever conside

Re: Macports OSX issues?

2011-04-07 Thread Trevor Bain
> Someone, recently, opened up a similar ticket to this in macports > (for the erlang version error) and it was closed as fixed. So, I > assumed that this wasn't the error (bad assumption). I guess the > same problem happened again more recently - doesn't macports allow > for build/runtime depe

Couch Replication: slave on-disk size bloat

2011-04-07 Thread steve . webb
Hello there. New couch admin here. I've got two couchdb machines that are not being written to. I cleaned off the slave, then replicated and compacted the DBs on the slave and the slave DB size on-disk is *way* more than on the master. Also, we've found that when the slaves are being activel

Re: Peer-to-Peer Replication

2011-04-07 Thread Ian Hobson
On 05/04/2011 18:36, Zdravko Gligic wrote: Hi Folks, Are there any large implementations of CouchDB peer-to-peer replications or even smaller open source samples? Actually, the piece that I am mostly interested in is at the application/design end of how to go about implementing the "traffic cop

Re: continuous replication

2011-04-07 Thread Randall Leeds
On Mon, Apr 4, 2011 at 14:25, thsteinbock wrote: > Hi, > > is it possible to explain: > http://wiki.apache.org/couchdb/Replication#Cancelling_a_continuous_replication_task > a bit more in detail; does > > http://... "continuous":true, "cancel":true } > mean something like > > stop -->  start > > c

Re: Macports OSX issues?

2011-04-07 Thread Trevor Bain
> You can also recompile Erlang with the necessary switch. It's quite simple - the same thing happened to me a > number of weeks ago. I can no longer remember exactly what's needed, but it's definitely in the archives of > this list. > > / Peter > > > It's because the new version of Erlang

Re: Macports OSX issues?

2011-04-07 Thread Peter Bengtson
You can also recompile Erlang with the necessary switch. It's quite simple - the same thing happened to me a number of weeks ago. I can no longer remember exactly what's needed, but it's definitely in the archives of this list. / Peter 7 apr 2011 kl. 21.16 skrev Owen Davies: > It's be

Re: Macports OSX issues?

2011-04-07 Thread Owen Davies
It's because the new version of Erlang that is installed with Mac Ports does not work with the current version of CouchDB. You need to downgrade Erlang to the previous version. Owen On 7 April 2011 19:52, Trevor Bain wrote: > After installing couchdb and adding the launchctl startup item I tried

Macports OSX issues?

2011-04-07 Thread Trevor Bain
After installing couchdb and adding the launchctl startup item I tried to connect to couchdb localhost :: ~ » curl -vX GET http://localhost:5984 * About to connect() to localhost port 5984 (#0) * Trying ::1... Connection refused * Trying fe80::1... Connection refused * Trying 127.0.0.1... Co

Re: change notifications question

2011-04-07 Thread Mark Hahn
You are not even guaranteed the old version will be there. You need to build history into your app. On Thu, Apr 7, 2011 at 10:43 AM, Thomas Vander Stichele wrote: > Hi everyone, > > I am adding change notification support to paisley (twisted library for > couchdb) and am writing a simple client

Re: Peer-to-Peer Replication

2011-04-07 Thread Owen Marshall
On 04/07/2011 01:30 PM, Zdravko Gligic wrote: > If a single local CouchDB is set up to replicated from 100 friends and > after say some prolonged quiet period a message comes through from 1 > of the friends (who has the latest copy with all documents in it) will > all of the subsequent 99 cause th

change notifications question

2011-04-07 Thread Thomas Vander Stichele
Hi everyone, I am adding change notification support to paisley (twisted library for couchdb) and am writing a simple client that sends GUI notifications for changed documents. While doing so, I was wondering if anyone ever considered having change notifications not only notify the new rev id, bu

Re: Peer-to-Peer Replication

2011-04-07 Thread Zdravko Gligic
One final question ... > A higher amount of peers will require much more configuration and would > increase network traffic, but would likely decrease the delay for > getting the data replicated to anyone. If a single local CouchDB is set up to replicated from 100 friends and after say some prolo

Re: Peer-to-Peer Replication

2011-04-07 Thread Ryan Ramage
I think we are missing the issue. We do all agree that couch is great at replicating when it has been wired up with src and dest urls. The issue is more around creating a distributed graph management to handle nodes (couches) in a peer to peer manner. I don't think this space has been really explo

Re: Peer-to-Peer Replication

2011-04-07 Thread Ryan Ramage
> For a local network, there are lots of service discovery protocols One other thing, each couch may have different dbs on it. So an extra layer of complexity is not just which couches to wire together, but what dbs. For a lighthearted example, I would not want my music db syncing with another per

Re: Peer-to-Peer Replication

2011-04-07 Thread Owen Marshall
On 04/06/2011 04:44 PM, Zdravko Gligic wrote: > Does this mean that numerous replications can be set up for a single > local CouchDB instance. Absolutely yes. > If so then given a community of 100,000's of > peers, would then a logical solution be one where each peer was > grouped into a subse

Re: Peer-to-Peer Replication

2011-04-07 Thread Nebu Pookins
On Wed, Apr 6, 2011 at 5:47 PM, Zdravko Gligic wrote: > > In it's simplest form, consider a large community of members or peers, > in which each member subscribes to one or more of a dozen CouchDB > databases. Each peer would have their own CouchDB. So if you have a thousand peers, there are a th

Re: The new couchapp. [cr]

2011-04-07 Thread Gabor Ratky
Don't mean to be negative wrt the original python couchapp and the new one in development, but we've moved over to soca (sammy on couchapp) that comes with a nice ruby (thor-based) CLI. It also lets go of the quirky, albeit logical directory structure that couchapp enforces on you. It loses 'clo

Re: The new couchapp. [cr]

2011-04-07 Thread bryan rasmussen
I would also prefer JSON. There are lots of tools to emit and manipulate JSON, in my current build scenarios I am using javascript to maintain and generate configurations, that would have to change with erlang based configuration (or would at any rate need some new coding) Thanks, Bryan Rasmussen