OAuth example

2010-11-01 Thread Doug
Can anyone point me in the right direction to see an oauth example? I've seen this page: http://wiki.apache.org/couchdb/Authentication_and_Authorization ...but that doesn't seem to be anything useful. Web oauth typically works like this: 1) Get a request token. 2) Send the user to a login page

Re: Complex keys and ranges

2010-11-01 Thread Anand Chitipothu
2010/11/1 cdr53x : > Hello, > > I've read all the docs/wiki again but cannot find anything related to views > usage when keys are complex JSON objects. > > Especially, there are no explanations nor examples of how the ranges ( > startkey/endkey ) are supposed to behave with complex keys. > > For in

RE: Complex keys and ranges

2010-11-01 Thread Nils Breunese
You can do AND queries using standard views. You can't do OR queries that way. Check out couchdb-lucene: http://github.com/rnewson/couchdb-lucene Nils. Van: cdr53x [cdr...@free.fr] Verzonden: maandag 1 november 2010 19:09 Aan: user@couchdb.apache.org Onder

A few questions about CouchDB

2010-11-01 Thread Nick Lothian
Hi, I'm looking at using CouchDB for part of a project I'm getting started on. I've got a few questions I was hoping someone could help me with. 1) How are people doing reporting on CouchDB based data? Obviously I can write custom code to do it, but are there any report writers (eg Crystal Repor

Re: Sharing design documents between DBs

2010-11-01 Thread Gregor Frey
Thanks for the very interesting discussion! Benjamin's proposal to distinguish between the replication of "app dbs" on different hosts and replicating the design documents between "customer dbs" on the same machine and CouchDB instance reduces the http-traffic and supports scaling over many mac

User app activity Logging

2010-11-01 Thread Zdravko Gligic
Hi Folks, I have a community use case where I need to track: a) user id b) user action c) doc._id e) date.time Wiki talks about short doc._id values making a huge difference on storage and performance. I am assuming that the same arguments also apply to view indexing as it uses the same b-tree in

Document level security

2010-11-01 Thread Chad George
I've been watching the CouchDB project for a couple years and just recently become very interested in using it for some projects. Over the past few weeks I've been trying to fully grok the CouchDB way. >From what I can gather, I think the topic of document level security has been raised and reject

Re: Complex keys and ranges

2010-11-01 Thread cdr53x
On 11/01/2010 06:10 PM, Paul Davis wrote: In short, no, its not possible to filter on multiple members of an object key. Ok, that is sad, but clear enough ;) Also note that it's "startkey" and "endkey", not "start_key" nor "end_key". Yes of course, just a typo in my message Thanks for

Re: Sharing design documents between DBs

2010-11-01 Thread Benjamin Young
Martin, I'm not sure what your setup is, but if you had an "app" database (the authoritative db for the _design doc you want to share with customers) on the same instance of CouchDB with the customer's db's, then your replication requests would all be local--no IP connections what so ever. To do

Re: Complex keys and ranges

2010-11-01 Thread Filipe David Manana
Also note that it's "startkey" and "endkey", not "start_key" nor "end_key". On Mon, Nov 1, 2010 at 5:10 PM, Paul Davis wrote: > On Mon, Nov 1, 2010 at 12:56 PM, cdr53x wrote: >> Hello, >> >> I've read all the docs/wiki again but cannot find anything related to views >> usage when keys are comple

Re: Complex keys and ranges

2010-11-01 Thread Paul Davis
On Mon, Nov 1, 2010 at 12:56 PM, cdr53x wrote: > Hello, > > I've read all the docs/wiki again but cannot find anything related to views > usage when keys are complex JSON objects. > > Especially, there are no explanations nor examples of how the ranges ( > startkey/endkey ) are supposed to behave

Complex keys and ranges

2010-11-01 Thread cdr53x
Hello, I've read all the docs/wiki again but cannot find anything related to views usage when keys are complex JSON objects. Especially, there are no explanations nor examples of how the ranges ( startkey/endkey ) are supposed to behave with complex keys. For instance let's presume we have

Re: Why or when is data local ?

2010-11-01 Thread Benjamin Young
Marcus, CouchDB is available on Android via the CouchOne Platform installer: http://www.couchone.com/android There's work being done for the other platforms as well. Palm's WebOS has a compatible replication API for their "db8" system (for what that's worth). Lawnchair doesn't currently offer rep

Re: Why or when is data local ?

2010-11-01 Thread Wordit Ltd
On Mon, Nov 1, 2010 at 2:41 PM, Benjamin Young wrote: > > Depending on what you're building, getting CouchDB on your user's machine > could be fairly trivial. Thanks Benjamin (and Randall). I'm creating web apps, just HTML5 and Javascript, possibly using couchapp as well. Most users for "casual

Re: Sharing design documents between DBs

2010-11-01 Thread Martin Higham
'Continuous' replication to thousands of databases means thousands of permanent IP connections. The alternative is that you write a script that fires off replication requests in sequence for all your databases to perform the update. As you say, this shouldn't occur often. Martin On 1 November 201

Re: Sharing design documents between DBs

2010-11-01 Thread Benjamin Young
Martin, Why not? It's only going to be sending changes. Unless you're constantly updating your app installation or those changes are massive, you shouldn't run into any trouble. Your other option is the "middle-ware" setup, but then you'd loose the power of application replication. Thoughts? La

Re: Sharing design documents between DBs

2010-11-01 Thread Martin Higham
Until you have one DB per user and then you're looking at replicating the design doc to many thousands of databases and continuous replication doesn't make sense Martin On 1 November 2010 14:11, Benjamin Young wrote: > Hey Gregor, > > If you setup continuous replication between your various cus

Re: Sharing design documents between DBs

2010-11-01 Thread Benjamin Young
Hey Gregor, If you setup continuous replication between your various customer db's and your primary application database (which would likely only contain the main app's design doc), then publication of the app would automatically be "rolled out" to the various customer db's. Because these DB's wou

Re: Why or when is data local ?

2010-11-01 Thread Benjamin Young
Hey Marcus, Great questions. User's don't currently install Couch on their clients, but the plan/hope is that they will. :) Or (better yet), that CouchDB will already be on their client: as is the case with Ubuntu. The more places we have CouchDB, the more this replication model makes sense. Dep

Re: Sharing design documents between DBs

2010-11-01 Thread Jan Lehnardt
Hi Gregor, On 1 Nov 2010, at 08:12, Gregor Frey wrote: > Hi, > when I followed the discussion about the setup of CouchDB in a hosted > environment, I wondered whether it would be possible to share the application > level software between multiple databases. This would enable a real > multi-ten

Sharing design documents between DBs

2010-11-01 Thread Gregor Frey
Hi, when I followed the discussion about the setup of CouchDB in a hosted environment, I wondered whether it would be possible to share the application level software between multiple databases. This would enable a real multi-tenant set-up. Otherwise you must duplicate the application with eac