Rewrite removing query string

2010-03-01 Thread David Goodlad
Hi all I have a rewrite rule like the following: { from: /db/*, to: ../../* } I'd expect it to then map from /mydb/_design/ddoc/_rewrite/db/_design/ddoc/_view/foo?include_docs=true to /mydb/_design/ddoc/_view/foo?include_docs=true It does, EXCEPT that it drops the include_docs parameter.

Re: user...@couchdb.apache.org

2010-03-01 Thread Daniel Truemper
Hi, A clean, searchable Web frontend ( perhaps forums) would be nice, too. I think this is what Markmail is for [1]. And you could easily provide a Google translate link for the messages!? But language specific documentation is the very best way to help People out. Me speaking german and i

Re: Rewrite removing query string

2010-03-01 Thread David Goodlad
After some experiments on the train and a quick discussion with benoitc in #couchdb, this seems to be a result of using vhosts, not rewrite. I have the following vhost setup: swift-ca.swiftshift.local:5984 = /swift-ca/_design/swift/_rewrite The debug logs show the following when I request

Re: user...@couchdb.apache.org

2010-03-01 Thread Yohei SASAKI
Hi We, in Japan, have a google group for our local CouchDB user community(*1). Our google group list is good enough for local communications or discussions. But I think a central place fo langage specific documentations(wiki, presentations, ...etc) is better because most of beginers seem to

counting tags within a date range

2010-03-01 Thread Borja Martín
Hi, I have these documents : { created_at: 20100301, tag: foo }, { created_at: 20100301, tag: bar }, { created_at: 20100301, tag: foo-bar }, { created_at: 20100302, tag: foo } and what I want is to retrieve the documents within a date range and count how many times does each tag appear globally

Re: Relational-esque behavior in CouchDB

2010-03-01 Thread Paul Davis
Mike, It'd be quite difficult if not impossible to be able to build the derivative view incrementally. Allowing map functions to pull data from a random location would break the referential transparency requirement. HTH, Paul Davis On Mon, Mar 1, 2010 at 10:41 AM, Mike Keen m...@visiture.com

View Troubles

2010-03-01 Thread Sean Clark Hess
We have a database full of tv listing information. I want to write a view that will let me say What is playing on ESPN at 14:45? One way I can accomplish this is to emit the show multiple times, on the half hour, and then only ask what is playing at each half-hour interval. This is no ideal,

Re: counting tags within a date range

2010-03-01 Thread Brian Candler
On Mon, Mar 01, 2010 at 02:33:46PM +0100, Borja Martín wrote: I have these documents : { created_at: 20100301, tag: foo }, { created_at: 20100301, tag: bar }, { created_at: 20100301, tag: foo-bar }, { created_at: 20100302, tag: foo } and what I want is to retrieve the documents within

Re: View Troubles

2010-03-01 Thread J Chris Anderson
On Mar 1, 2010, at 8:30 AM, Sean Clark Hess wrote: We have a database full of tv listing information. I want to write a view that will let me say What is playing on ESPN at 14:45? One way I can accomplish this is to emit the show multiple times, on the half hour, and then only ask what is

Re: View Troubles

2010-03-01 Thread Brian Candler
On Mon, Mar 01, 2010 at 09:30:24AM -0700, Sean Clark Hess wrote: We have a database full of tv listing information. I want to write a view that will let me say What is playing on ESPN at 14:45? One way I can accomplish this is to emit the show multiple times, on the half hour, and then only

Re: Relational-esque behavior in CouchDB

2010-03-01 Thread J Chris Anderson
On Mar 1, 2010, at 7:41 AM, Mike Keen wrote: Hey, I am managing a database that has hundreds of thousands of documents (so far), all containing a field called keyword_id. I am not storing the keyword_name inside of each individual document for several reasons. The biggest reason being

Re: View Troubles

2010-03-01 Thread Sean Clark Hess
I think I'll just emit every half hour. I can't do ranges easily, because another query needs to ask for everything playing on all of a user's stations at 10:00. I have to use the keys post for that, which doesn't take ranges. Right now we're emitting the data we need for that (above) query as

Re: Relational-esque behavior in CouchDB

2010-03-01 Thread J Chris Anderson
On Mar 1, 2010, at 9:44 AM, Mike Keen wrote: Chris, It's not a feature of our application. It's a consequence of dealing with the Google AdWords API. The relational model strikes back! ;) Thanks anyway, Mike On Mar 1, 2010, at 11:55 AM, J Chris Anderson wrote: On Mar 1, 2010,

Re: Replication question

2010-03-01 Thread James Marca
On Mon, Mar 01, 2010 at 08:33:53AM -0800, J Chris Anderson wrote: On Feb 28, 2010, at 11:01 PM, James Marca wrote: On Mon, Mar 01, 2010 at 10:29:03AM +1300, Blair Nilsson wrote: It shouldn't be surprising though, the target database may already have records in it that would change the

Re: View Troubles

2010-03-01 Thread Brian Candler
On Mon, Mar 01, 2010 at 10:16:11AM -0700, Sean Clark Hess wrote: I think I'll just emit every half hour. I can't do ranges easily, because another query needs to ask for everything playing on all of a user's stations at 10:00. I have to use the keys post for that, which doesn't take ranges.

Erlang/Couchdb web app needs your support

2010-03-01 Thread Senthilkumar Peelikkampatti
Hi, Tiptex uses couchdb as it is primary datastore and it was one of the idea submitted to Paypal developer challenge and it made into one of the 55 ideas selected out of 700+. It is into pre final round and this round is about community vote. Tiptex needs your vote to get into final

Re: Erlang/Couchdb web app needs your support

2010-03-01 Thread Brian Candler
On Mon, Mar 01, 2010 at 12:45:23PM -0600, Senthilkumar Peelikkampatti wrote: About Tiptex: --- Tiptex is developed with clear vision of realizing Super scale architecture. Erlang is spinal cord, bone and nerve of tiptex. It did not use any database but ... uses CouchDB which

Re: Erlang/Couchdb web app needs your support

2010-03-01 Thread Senthilkumar Peelikkampatti
Sorry for not elaborating earlier as I had planned for explaining it later elaborately. But here is the brief description of Tiptex. Tiptex – follows SaaS model where garment manufacturer can signin and list their items. Anybody can visit tiptex.com and search for items and buy them. Items can

Re: Show Functions

2010-03-01 Thread Mario Scheliga
Hi Chris, i thought this would be easy, but still get an error like this: curl -vX POST http://127.0.0.1:5984/todoapp/_design/todoapp/_show/display/27e2f1a54606f0883e2f8891b5bf500f * About to connect() to 127.0.0.1 port 5984 (#0) * Trying 127.0.0.1... connected * Connected to 127.0.0.1

Re: Show Functions

2010-03-01 Thread J Chris Anderson
On Mar 1, 2010, at 2:04 PM, Mario Scheliga wrote: Hi Chris, i thought this would be easy, but still get an error like this: curl -vX POST http://127.0.0.1:5984/todoapp/_design/todoapp/_show/display/27e2f1a54606f0883e2f8891b5bf500f * About to connect() to 127.0.0.1 port 5984 (#0) *

purge - compaction

2010-03-01 Thread Mario Scheliga
Hi guys, here a simple question again, what is the _purge thing about, where is the difference to compaction? Found nothing in the wiki about it, but read some articles where it was referenced, still got no idea where the difference is thx alot mario -- Sourcegarden GmbH HR: B-104357

Default values via _updates function

2010-03-01 Thread Jim Garvin
Hi All, I'm trying to do server-side created_at timestamps via CouchDB's _updates features, but I'm having trouble creating a new document out of the JSON passed in the request body. My app doesn't allow updates to existing documents, only inserts. Here's the very simple _updates function:

Re: Default values via _updates function

2010-03-01 Thread J Chris Anderson
On Mar 1, 2010, at 2:53 PM, Jim Garvin wrote: Hi All, I'm trying to do server-side created_at timestamps via CouchDB's _updates features, but I'm having trouble creating a new document out of the JSON passed in the request body. My app doesn't allow updates to existing documents, only

Re: Default values via _updates function

2010-03-01 Thread Mario Scheliga
Hi Jim, I think you do not have the JSON-Class in Place at this point. Try using parseJSON instead. (according to json2.js - file) greetzs mario Am 01.03.2010 um 23:53 schrieb Jim Garvin: Hi All, I'm trying to do server-side created_at timestamps via CouchDB's _updates features, but I'm

Re: Default values via _updates function

2010-03-01 Thread Mario Scheliga
Hi Jim, forget my last answer... sorry just grepped the source i think chris is right! greetz mario Am 01.03.2010 um 23:53 schrieb Jim Garvin: Hi All, I'm trying to do server-side created_at timestamps via CouchDB's _updates features, but I'm having trouble creating a new document

Re: disk_format_version

2010-03-01 Thread Randall Leeds
It's used to mark breaking changes in the on disk format of the database, I believe. Let's couch know what upgrade path to use when migrating old database files. On Mon, Mar 1, 2010 at 15:03, Mario Scheliga ma...@sourcegarden.de wrote: Hi Guys, does anybody knows what disk_format_version is?

Re: disk_format_version

2010-03-01 Thread Mario Scheliga
thx Randall, that sounds good to me. Is there any Documentation on this? Am 02.03.2010 um 01:19 schrieb Randall Leeds: It's used to mark breaking changes in the on disk format of the database, I believe. Let's couch know what upgrade path to use when migrating old database files. On Mon,

Re: disk_format_version

2010-03-01 Thread Randall Leeds
http://github.com/apache/couchdb/blob/trunk/src/couchdb/couch_db.hrl#L121 On Mar 1, 2010 4:43 PM, Mario Scheliga ma...@sourcegarden.de wrote: thx Randall, that sounds good to me. Is there any Documentation on this? Am 02.03.2010 um 01:19 schrieb Randall Leeds: It's used to mark breaking

Re: disk_format_version

2010-03-01 Thread Mario Scheliga
thank you very very much. :-) Am 02.03.2010 um 04:24 schrieb Randall Leeds: http://github.com/apache/couchdb/blob/trunk/src/couchdb/couch_db.hrl#L121 On Mar 1, 2010 4:43 PM, Mario Scheliga ma...@sourcegarden.de wrote: thx Randall, that sounds good to me. Is there any Documentation on

Re: user...@couchdb.apache.org

2010-03-01 Thread Jan Lehnardt
On 1 Mar 2010, at 02:21, Daniel Truemper wrote: Hi, A clean, searchable Web frontend ( perhaps forums) would be nice, too. I think this is what Markmail is for [1]. And you could easily provide a Google translate link for the messages!? But language specific documentation is the very