Re: CouchDB, Facebook & Other log-ins

2011-03-22 Thread Aurélien Bénel
Hi Zdradvko, > Is there perhaps a special (:secured :) lounge where logins, permissions and > security are discussed > ;?) To make it simple: - if your authorizations depend only on the requests (URLs, credentials, etc.), then you will be able to handle them outside CouchDB in a reverse proxy

Re: blocking during view generation

2011-03-22 Thread kowsik
On Tue, Mar 22, 2011 at 9:31 PM, Mark Hahn wrote: >> The recommended way is to add a new design/view (with the change) have > CouchDB take its time to index it and then switch over to this view. > > This solves everything for me. > >> I had the impression from the discussion that the server blocke

Re: blocking during view generation

2011-03-22 Thread Mark Hahn
> The recommended way is to add a new design/view (with the change) have CouchDB take its time to index it and then switch over to this view. This solves everything for me. > I had the impression from the discussion that the server blocked more widely > than just the view being generated It doe

Re: blocking during view generation

2011-03-22 Thread Andrew Stuart (SuperCoders)
Ah well that makes sense. I had the impression from the discussion that the server blocked more widely than just the view being generated which would have been very strange. On 23/03/2011, at 3:12 PM, kowsik wrote: On Tue, Mar 22, 2011 at 8:51 PM, Andrew Stuart (SuperCoders) wrote: Say I

Re: blocking during view generation

2011-03-22 Thread kowsik
On Tue, Mar 22, 2011 at 8:51 PM, Andrew Stuart (SuperCoders) wrote: > Say I put 100,000 documents into a production database.  Is that database > usable whilst the views are updated to include those new documents? The recommended way is to add a new design/view (with the change) have CouchDB take

Re: blocking during view generation

2011-03-22 Thread Andrew Stuart (SuperCoders)
Say I put 100,000 documents into a production database. Is that database usable whilst the views are updated to include those new documents? What exactly is blocked and under what circumstances? On 23/03/2011, at 2:42 PM, Mark Hahn wrote: Just to make it clear, I am only talking about the

Re: blocking during view generation

2011-03-22 Thread Mark Hahn
After re-reading this thread, I see that possibly everyone is referring to other accesses being blocked for a short period of time after a doc update. I should have noticed that was being referred to instead of what I originally meant, which was the blocking when changing to source code for a view

Re: blocking during view generation

2011-03-22 Thread Mark Hahn
Just to make it clear, I am only talking about the process that happens when I change the source code of a view. I wasn't surprised to see accesses to that view being blocked, but seeing all access to all views being blocked was stupefying. Why rebuild views that haven't changed? On Tue, Mar 22

Re: blocking during view generation

2011-03-22 Thread Andrew Stuart (SuperCoders)
Hmmm. I'd have imagined this would be on the critical "get this fixed ASAP" task list for the developers. Is it even on the roadmap? I'd prefer to avoid building an app that has to choose between making requests for stale data and potentially waiting an unknown amount of time for views t

Re: Google Chrome 310 with calling IP -> solved

2011-03-22 Thread Mark Hahn
I've had infinite redirect problems with chrome two or three times. It even happened with the gmail page. Each time clearing cookies fixed it. On Sat, Mar 19, 2011 at 5:51 AM, brains@work wrote: > Hi, > > I just filed a bug to Google which took the whole afternoon to figure it out. > I'm not su

Re: blocking during view generation

2011-03-22 Thread kowsik
On Tue, Mar 22, 2011 at 8:28 PM, Andrew Stuart (SuperCoders) wrote: > This one seems hard to believe - is it true that CouchDB blocks the server > whilst updating views? > > View updates can be alot of work for a server. > > So in reality, queries to the server pause whilst views are updated? > >

PHP-based SHA1 algorithm?

2011-03-22 Thread Martin Hewitt
Hi all, I'm writing a build process in Phing, part of which involves creating a new CouchDB user. I'm having trouble logging in as the created user and have an inkling that it's down to the SHA1 encryption of the password and salt, as the Security wiki page is quite specific about what SHA1s wo

Re: blocking during view generation

2011-03-22 Thread Andrew Stuart (SuperCoders)
This one seems hard to believe - is it true that CouchDB blocks the server whilst updating views? View updates can be alot of work for a server. So in reality, queries to the server pause whilst views are updated? This doesn't seem practical for any production usage. Can someone confirm that

Re: blocking during view generation

2011-03-22 Thread Mark Hahn
Can some please direct me to where this behavior is documented? I just went over the technical description again and this is not mentioned there. Here is the closest thing I could find and it doesn't seem to agree with my experience. (From http://couchdb.apache.org/docs/overview.html). "CouchDB’

Re: blocking during view generation

2011-03-22 Thread Mark Hahn
Apparently I have a lot of solutions to work with. I was quite worried after first seeing this. P.S. I studied couch at great lengths for months and I never saw this, or at least I didn't see the implications. It needs to be discussed at more length or more specifically in the manual (book?). P

Re: Google Chrome 310 with calling IP -> solved

2011-03-22 Thread Keith Gable
Chromium 9.0.597.67, Gentoo Linux, works for me. On Tue, Mar 22, 2011 at 8:20 PM, Nicholas Orr wrote: > both urls work on windows7 > stable: v10.0.648.151 > canary: v12.0.711.0 > > On Tue, Mar 22, 2011 at 3:40 AM, JC de Villa wrote: > >> Tried both links on chromium - 10.0.648.133 (77742) Ubuntu

Re: Google Chrome 310 with calling IP -> solved

2011-03-22 Thread Nicholas Orr
both urls work on windows7 stable: v10.0.648.151 canary: v12.0.711.0 On Tue, Mar 22, 2011 at 3:40 AM, JC de Villa wrote: > Tried both links on chromium - 10.0.648.133 (77742) Ubuntu 10.04. > > Both links work fine for me. > > JC de Villa > > > > On Sat, Mar 19, 2011 at 8:51 PM, brains@work > wr

Re: CouchDB, Facebook & Other log-ins

2011-03-22 Thread Zdravko Gligic
Back in the COBOL days, the old school seemed to be lot less relaxed about securing their key-punched data cards than the new (CouchDB) school is about its online databases. Is there perhaps a special (: secured :) lounge where logins, permissions and security are discussed ;?)

Re: How to tell if replication is caught up?

2011-03-22 Thread Wayne Conrad
On 03/22/11 13:02, Filipe David Manana wrote: On Tue, Mar 22, 2011 at 7:27 PM, Wayne Conrad wrote: My largest, ~600GB database was awful to compact. Because much of it seldom changes, I shared that database by account, yielding about 500 databases of various sizes. With a compaction daemon th

Re: How to tell if replication is caught up?

2011-03-22 Thread Filipe David Manana
Hi Wayne, On Tue, Mar 22, 2011 at 7:27 PM, Wayne Conrad wrote: > My largest, ~600GB database was awful to compact.  Because much of it seldom > changes, I shared that database by account, yielding about 500 databases of > various sizes.  With a compaction daemon that only compacts a database when

How to tell if replication is caught up?

2011-03-22 Thread Wayne Conrad
My largest, ~600GB database was awful to compact. Because much of it seldom changes, I shared that database by account, yielding about 500 databases of various sizes. With a compaction daemon that only compacts a database when it grows, compaction is no longer a problem. However, I appear to

RE: Relationships Of Complex Documents In Document Databases

2011-03-22 Thread Nils Breunese
By the way, you might want to take a look at Taskr, a task tracking CouchApp by CouchDB committer jchris: https://github.com/jchris/taskr Nils. Van: Nils Breunese Verzonden: dinsdag 22 maart 2011 19:53 Aan: user@couchdb.apache.org Onderwerp: RE: Relationsh

RE: Relationships Of Complex Documents In Document Databases

2011-03-22 Thread Nils Breunese
Although I think CouchDB is great, maybe using a relational database isn't such a strange idea if you want to model a lot of relationships... :o) On the other hand I don't necessarily see a problem with storing tasks as documents with a username field in them and for instance creating a view tha

Re: Relationships Of Complex Documents In Document Databases

2011-03-22 Thread Danny Castonguay
Hi Ryan, I had a similar question but then I stumbled upon this page on the wiki: http://wiki.apache.org/couchdb/EntityRelationship I haven't tried it yet, but this may just be what you are looking for. Danny On Tue, Mar 22, 2011 at 11:28 AM, Ryan Zec wrote: > I have been looking at a numbe

Relationships Of Complex Documents In Document Databases

2011-03-22 Thread Ryan Zec
I have been looking at a number of document databases (RavenDB, CouchDB, MongoDB) and there are two things about them that I really like and makes me what to incorporate them as much as possible and that is the schema-less natural (not that they are schema-less per-say but that it is a very flexibl

Re: blocking during view generation

2011-03-22 Thread Gabor Ratky
If blocking and blocking only is the problem and you're OK with stale data, passing ?stale=ok might solve your problem with blocking. See http://wiki.apache.org/couchdb/HTTP_view_API for more details. Gabor On Mar 21, 2011, at 6:24 PM, Mark Hahn wrote: > I have noticed that all view queries ar

Re: Multiple couchjs processes being spawned

2011-03-22 Thread James Gartrell
Adam Kocoloski writes: > > Mahesh, do you by chance have an updater running for the view group when the view compaction completes? > > On Jan 2, 2011, at 4:53 PM, Adam Kocoloski wrote: > > > These reports do sound suspiciously like the problems described in COUCHDB-901 that caused us to rewrit

Re: Cross/Joined Database Access?

2011-03-22 Thread Dominic Tarr
you would have to do multiple http requests, i think. would it be possible to combine all of the dbs into one database and just have a field = user1,user2 etc? somethings like this seem weird, coming from relational databases, but thats couchdb. On Tue, Mar 22, 2011 at 9:02 PM, Marc Schwering wr

Re: External process for httpd_global_handlers

2011-03-22 Thread Kai Griffin
I developed an early prototype of my current project with Flex (Flash), and ran into this issue early on. At first, I resolved it by actually modifying my copy of CouchDB and recompiling it, so that it would handle a request for the crossdomain file in the same way that it handles the welcome

Re: multiple database or many doc types in one database?

2011-03-22 Thread Paul Hirst
On Tue, 2011-03-22 at 02:12 +, Dominic Tarr wrote: > right. > > so what is needed is a script to migrate a type to (or from) it's own > database. and replicate the views. > > hmm... i think you can do a one time replication with a filter... > > then you'd just have to change the code which requ

Cross/Joined Database Access?

2011-03-22 Thread Marc Schwering
Hi there. Is it possible // How do i Search on multiple Databases? Given one Layout/Schema of Entities: Postings => id; title; content; timestamp This Schema exists due multiple instances of one Application (for different Users) on n Databases. Like: db1,db2,db3 I want to do two fetches: a) a

CouchDB, Facebook & Other log-ins

2011-03-22 Thread Zdravko Gligic
Hi Folks, How do I go about setting up CouchDB users so that they are optionally tied together to Facebook and maybe other log-ins such as GMail ? Also, if my Adobe Flex/AiR application lives within a CouchDB as document attachments, how do I send out emails for password reminders? Thanks again,