Re: About denormalization and keep consistent

2010-04-08 Thread faust 1111
Yes i understand that listen _changes is better to get round race conditions. Cannot get your suggesting about how i can track that all contents related to author was updated not 5 of 50 but all. Thats ok. I don't understand if listen feed _chenges, feed give me info only about id & rev of change

Re: About denormalization and keep consistent

2010-04-08 Thread Nicholas Orr
i don't think you are getting what the above people are suggesting... Go read up on the _changes API :) The basics are, every single change in the database is pushed into this feed. All race conditions that are caused by your ruby way (via the filter) are averted :) Nick On Fri, Apr 9, 2010 at

Re: Where can I find crash logs for couch?

2010-04-08 Thread Sean Clark Hess
Yeah, happened again. Couch is offline, and service --status-all says "couchdb dead but subsys locked". The last thing in the log is a request that seems to have gone through. What's going on?? On Mon, Apr 5, 2010 at 4:10 PM, Sean Clark Hess wrote: > I guess I don't know for sure. It just turns

Problems building/installing 0.11 on Solaris 10

2010-04-08 Thread Matthew Sinclair-Day
I've built 0.11 for Solaris 10/x86, but I am running into problems getting couch to start. The erlang process is running, but the web server does not appear to be. Stdout and stderr are being created, but the pid file and normal log file are not. I'm not sure how to peel back the layers. Ar

Re: Do change notification (filters) support HTTP verbs other than GET?

2010-04-08 Thread J Chris Anderson
On Apr 8, 2010, at 4:06 PM, Ning Tan wrote: >> On Thu, Apr 8, 2010 at 10:45 AM, J Chris Anderson wrote: >>> >>> If you want to try with a POST instead of a GET, you can edit one line in >>> couch_httpd_db.erl >>> handle_changes_req(#httpd{method='GET'}=Req, Db) -> >>> to: >>> handle_changes_re

Re: Do change notification (filters) support HTTP verbs other than GET?

2010-04-08 Thread Ning Tan
> On Thu, Apr 8, 2010 at 10:45 AM, J Chris Anderson wrote: >> >> If you want to try with a POST instead of a GET, you can edit one line in >> couch_httpd_db.erl >> handle_changes_req(#httpd{method='GET'}=Req, Db) -> >> to: >> handle_changes_req(Req, Db) -> >> which should allow for POSTs to _chan

Re: Error running couchdb: "libicuuc.so.44: cannot open shared object file: No such file or directory"

2010-04-08 Thread Sebastian Cohnen
my first guess would be a missing dependency (ICU)... did you build couchdb from source? maybe you need to provide the location of your libicu to the configure script On 08.04.2010, at 10:40, Yauhen Zenko wrote: > Hello! > > I successfully installed couchdb version 0.11.0 on Red Hat Enterprise

Re: Validate uniqueness field

2010-04-08 Thread Alexander Uvarov
For single master I have working example of locks implemented as pluggable http handler. It works similar to rewriter handler. ## Examples Create a lock with 3 seconds lifetime: POST http://localhost:5984/DB/_locks?scope=Person&timeout=3000 201 - { "ok": true, "id": "3adaefg" } 409 - {

Re: URL transformation within CouchDB?

2010-04-08 Thread Anh
No they cannot. I'm implementing this as a content/file server which allows for nested directories. To support one document per file (important for file revisioning and other file metadata), document ids like: "/images/home/blah.png" "/images/home/other.png" must be URL encoded when requested fr

Re: About denormalization and keep consistent

2010-04-08 Thread faust 1111
i means when i do Content.by_author(self).each {|content| content.author_name = self.name; content.save(bulk=true) } i don't sure that all contents will updated may be only 5 and then process crushed. 2010/4/8 Andrew Melo : > On Thu, Apr 8, 2010 at 12:53 PM, faust

Re: CouchDB C API

2010-04-08 Thread Rodrigo Moya
On Thu, 2010-04-08 at 17:03 +, Jürgen Kraus wrote: > Rodrigo Moya writes: > > > > > On Thu, 2010-04-08 at 16:18 +, Jürgen Kraus wrote: > > > Guys/gals, > > > > > > http://wiki.apache.org/couchdb/Getting_started_with_C states that to use > > > this > > > API, you just have to > > > > >

Re: About denormalization and keep consistent

2010-04-08 Thread Andrew Melo
On Thu, Apr 8, 2010 at 12:53 PM, faust wrote: > What difference? > if do > Author >  after_save >     if name_changed? >        Content.by_author(self).each {|content| >           content.author_name = self.name; >           content.save(bulk=true) >       } > > or i start backend process to

Re: About denormalization and keep consistent

2010-04-08 Thread faust 1111
What difference? if do Author after_save if name_changed? Content.by_author(self).each {|content| content.author_name = self.name; content.save(bulk=true) } or i start backend process to track Author _changes. This code not guarantee that all contents w

Re: Couchdb replication error (from Windows to Linux - couchdb ver. 0.11.0)

2010-04-08 Thread Randall Leeds
The log output isn't terribly useful. Could you repeat this with debug logging level? On Apr 8, 2010 4:47 AM, "Yauhen Zenko" wrote: I have two couchdb servers: the first is on Windows, the second is on Linux. Version 0.11.0 install on both computers. I have the database on Windows server (databa

Re: About denormalization and keep consistent

2010-04-08 Thread Andrew Melo
On Thu, Apr 8, 2010 at 12:29 PM, faust wrote: > I can catch changes in my app before save author, may be backend > process is surplus in my case. > i need consistent, when i update author name i must know that all > contents with author was updated success. Then their suggestion of watching

Re: About denormalization and keep consistent

2010-04-08 Thread faust 1111
I can catch changes in my app before save author, may be backend process is surplus in my case. i need consistent, when i update author name i must know that all contents with author was updated success. 2010/4/8 Zachary Zolton : > I suggest you check out the _changes API: > http://books.couchdb.

Simple autocomplete

2010-04-08 Thread faust 1111
I need simple autocomplete for tags can i implement this with view or i need lucent? Content has tags when moderator need add tag he use autocomplete by all exists tags.

Re: CouchDB C API

2010-04-08 Thread Jürgen Kraus
Rodrigo Moya writes: > > On Thu, 2010-04-08 at 16:18 +, Jürgen Kraus wrote: > > Guys/gals, > > > > http://wiki.apache.org/couchdb/Getting_started_with_C states that to use > > this > > API, you just have to > > > > cd /home/user/couchdb/CouchProjects/Libraries/c/src/ > > make > > make ins

Re: CouchDB C API

2010-04-08 Thread Rodrigo Moya
On Thu, 2010-04-08 at 16:18 +, Jürgen Kraus wrote: > Guys/gals, > > http://wiki.apache.org/couchdb/Getting_started_with_C states that to use this > API, you just have to > > cd /home/user/couchdb/CouchProjects/Libraries/c/src/ > make > make install (as root) > > So far, so good, so - what? T

Re: About denormalization and keep consistent

2010-04-08 Thread Zachary Zolton
I suggest you check out the _changes API: http://books.couchdb.org/relax/reference/change-notifications Basically, if you have doc types A & B, where B maintains a denormed bit of A, then you can watch the _changes feed in a backend process. When an A gets updated, hit a view of all B's related to

CouchDB C API

2010-04-08 Thread Jürgen Kraus
Guys/gals, http://wiki.apache.org/couchdb/Getting_started_with_C states that to use this API, you just have to cd /home/user/couchdb/CouchProjects/Libraries/c/src/ make make install (as root) So far, so good, so - what? There is no such thing as 'CouchProjects', not even a home directory for the

About denormalization and keep consistent

2010-04-08 Thread faust 1111
Hi guy's I return back to my problem with denormalization. is it possible to keep consistent when apply denormalization? For example Content have author (we store author name and id in Content) When author name changed(that's happens not frequently) i need find all content belong to this autho

Re: Do change notification (filters) support HTTP verbs other than GET?

2010-04-08 Thread Ning Tan
On Thu, Apr 8, 2010 at 10:45 AM, J Chris Anderson wrote: > > If you want to try with a POST instead of a GET, you can edit one line in > couch_httpd_db.erl > > handle_changes_req(#httpd{method='GET'}=Req, Db) -> > > to: > > handle_changes_req(Req, Db) -> > > which should allow for POSTs to _chang

Error running couchdb: "libicuuc.so.44: cannot open shared object file: No such file or directory"

2010-04-08 Thread Yauhen Zenko
Hello! I successfully installed couchdb version 0.11.0 on Red Hat Enterprise Linux Server release 5.1 (Tikanga) but when I try to run couchdb I recieve followig error: Apache CouchDB 0.11.0 (LogLevel=info) is starting. =CRASH REPORT 8-Apr-2010::11:17:54 === crasher: initial call: appl

Re: Do change notification (filters) support HTTP verbs other than GET?

2010-04-08 Thread J Chris Anderson
On Apr 8, 2010, at 5:41 AM, Ning Tan wrote: > My filter function is > > function(doc, req) > { > return true; > } > OK. that looks good enough. :) Somehow I thought you were doing something stateful, based on your earlier description. BTW, you don't need to include json2.js as it is alrea

Re: Do change notification (filters) support HTTP verbs other than GET?

2010-04-08 Thread Ning Tan
On Thu, Apr 8, 2010 at 8:41 AM, Ning Tan wrote: > My filter function is > > function(doc, req) > { >   return true; > } > > :-) What I meant is that I'm even having the hanging problem with the above barebones function. The actual function I wrote earlier was: function (doc, req) { // !c

Re: Do change notification (filters) support HTTP verbs other than GET?

2010-04-08 Thread Ning Tan
My filter function is function(doc, req) { return true; } :-) On Wed, Apr 7, 2010 at 11:37 PM, J Chris Anderson wrote: > > On Apr 7, 2010, at 7:14 PM, Ning Tan wrote: > >> On Wed, Apr 7, 2010 at 2:05 AM, J Chris Anderson wrote: >>> >>> On Apr 6, 2010, at 8:48 AM, Ning Tan wrote: >>> He

Couchdb replication error (from Windows to Linux - couchdb ver. 0.11.0)

2010-04-08 Thread Yauhen Zenko
I have two couchdb servers: the first is on Windows, the second is on Linux. Version 0.11.0 install on both computers. I have the database on Windows server (database size is 12.6MB) and try to replicate it to couchdb installed on Linux. Replication fails with following error, but in target d

CouchDB 0.11 for Slackware 13

2010-04-08 Thread Nicolas Steinmetz
Hi, Even if it seems I'm the only one to use it so far, slackbuild for CouchDB 0.11.0 is available Til update is validated & published by the slackbuild team, slackbuild is available here : http://nicolas.steinmetz.fr/slackware/13/couchdb-0.11-slackbuild.tar.gz It should be then available on :