Metin Pasaoglu | 17 May 00:09

CouchDB architect

Hi,

We are looking for CouchDB best practices for our upcoming project. We 
are currently reading a lot about it but I would like to ask group for 
any interesting hints or sites that can help my search.

We are also welcome to here if any CouchDB expert interested to work 
with us as architecture/consultant for this project too.

Thanks in advance for all the replies.

Regards,
Metin Pasaoglu

Sr. Vice President Technology
CISSP-ISSAP, ISSMP, CISM, CRISC, CISA

EQUENEXT Inc
Phone  : 800-216-2792
Fax      : 888-581-8078
Metin.Pasaoglu@... <mailto:Metin.Pasaoglu@...>

Mike Kimber | 16 May 22:38

couch-lucene hwo to refernce elements in a complex document?

I have couch-lucene working when I index a top level element in my documents. However when I try and
reference a sub element as I would with a couchdb view no results are returned. A extract from my document is:

{
   "_id": "00023157-c1f8-4e39-ab9a-d56726739b8d",
   "_rev": "1-45cd4f7506ccede344d682904556be4b",
   "type": "maven-build-profile",
   "schema": "TODO-idOfSchemaDocument",
   "headers": {
       "started": 1328795714442,
       "core": {
           "user": "buildadm",
           "ip": "127.0.0.1",
           "executionId": "a607c818-c568-40a9-adbc-0844e6bf9a02"
       }
}
}

The following works

{
   "_id": "_design/lucene",
   "_rev": "19-1c7be47e52f8a65e9bb387e8c3251dd4",
   "language": "javascript",
   "fulltext": {
       "by_type": {
           "index": "function(doc) { var res = new Document(); res.add( doc. type); return res; }"
       }
   }
}
(Continue reading)

Mike Kimber | 16 May 22:20

Couch-lucene - Index all - JSON.parse: expected ',' or '}' after property value in object

Ive built/installed couch-lucene and pointed it at my couchdb database (1.2). It works when I index a a
individual attribute/key pair, but when I try an use the index all js code on
https://github.com/rnewson/couchdb-lucene via futon I get

JSON.parse: expected ',' or '}' after property value in object
JSON.parse: expected ',' or '}' after property value in object

Ive tried formatting it etc and it all looks fine, but the error message states that the JSON is not valid. My
design document looks like:

{
   "_id": "_design/lucene",
   "_rev": "18-22fdad425fb9f8cd1d8e39ba4b871103",
   "language": "javascript",
   "fulltext": {
       "all": {
           "index": "function(doc) {var ret = new Document(); function idx(obj) {for (var key in obj) {switch
(typeof obj[key]) {case 'object': idx(obj[key]); break; case 'function': break; default:
ret.add(obj[key]); break;}}}; idx(doc); if (doc._attachments) {for (var i in doc._attachments)
{ret.attachment("attachment", i); }}return ret; }"
       }
   }
}

The following works, so this suggest to me that it's the javascript that is the issue

Source
{
   "_id": "_design/lucene",
   "_rev": "19-1c7be47e52f8a65e9bb387e8c3251dd4",
(Continue reading)

Luca Matteis | 16 May 12:11
Picon
Gravatar

Hierarchical comments Hacker News style

Sorry for the repost. I was told user@ is more appropriate for this
kind of question:

I'm trying to implement a basic way of displaying comments in the way
that Hacker News provides, using CouchDB. Not only ordered
hierarchically, but also, each level of the tree should be ordered by
a "points" variable. If you're familiar with sites such as Hacker News
or Reddit you know that each level of the comment tree is ordered by
the amount of points and also the date they were posted - however, for
sake of simplicity I'll just talk about a "points" variable.

The idea is that I want a view to return it in the order I except, and
not make many Ajax calls for example, to retrieve them and make them
look like they're ordered correctly.

This is what I got so far: Each document is a "comment". Each comment
has a property `path` which is an ordered list containing all its
parents. So for example, imagine I have 4 comments (with _id `1`, `2`,
`3` and `4`). Comment `2` is children of `1`, comment `3` is children
of `2`, and comment `4` is also children of `1`. This is what the data
would look like:

   { _id: 1, path: ["1"] },
   { _id: 2, path: ["1", "2"] },
   { _id: 3, path: ["1", "2", "3"] }
   { _id: 4, path: ["1", "4"] }

This works quite well for the hierarchy. A simple `view` will already
return things ordered with each comment underneath the correct one.

(Continue reading)

googcheng | 15 May 20:00

about couchapp

Hi,  all!  I wanna make a couchapp, a little like slideshare to share some cc contents,  but it seems that the
management of  multi-user's accounts  is difficult to finish only by couchdb ,  is there some use case about
the multi-user access ?  Thanks!

--
文武之道,一张一弛。
Tim Tisdall | 14 May 21:13
Picon

reducing db size

I've got several gigabytes of data that I'm trying to store in a couchdb on
a single machine.  I've placed a section of the data in an sqlite db and
the file is about 5.9gb.  I'm currently placing the same data into couchdb
and while it hasn't finished yet, the file size is already 10gb and
continuing to grow.  The sqlite database is essentially a table of ids with
a json block of text for each, so I figured the couchdb wouldn't be too
much different in size.

Does anyone have some recommendations on how to reduce the size of the db?
 Right now I've only inserted data and have not made any "updates" to
documents, so there should be no revision copies to be cleared away.
bsquared | 14 May 17:28
Picon
Gravatar

Is spine.app compatible with couchdb


Hello,
I am test driving spine.app ( https://github.com/maccman/spine.app ),
and before I get too much time invested, I wonder if it makes sense to
use for couchdb.  

--

-- 
Regards,
Brian

Jens Alfke | 13 May 20:47
Favicon
Gravatar

"WWW-Authenticate" config option keeps getting lowercased

I’m trying to enable correct HTTP auth in my CouchDB by adding the option:
	[httpd]
	WWW-Authenticate = Basic

If I add this using Futon it works … but then it stops working after the server is restarted. Looking at the
.ini file on disk, the option got written out with the name lowercased:
	www-authenticate = Basic
I’ve tried several times to edit the config file (after shutting down the server) and fixing the
capitalization, but it keeps getting reset to lowercase every time the server starts.

Is this a known issue? Is it something that’s been fixed recently? My server is out of date but I’m having
trouble installing 1.2 (see prior thread.)

—Jens
Jens Alfke | 13 May 20:42
Favicon
Gravatar

Mac OS install of couchdb via homebrew is failing

I’m trying to install couchdb on OS X 10.7 using homebrew. The compile is failing with C errors using
SpiderMonkey APIs:

	In file included from couch_js/main.c:18:
	couch_js/sm180.c:261:63: error: too many arguments provided to function-like macro invocation
	    JS_FS("_open", (JSNative) req_open, 3, JSFUN_FAST_NATIVE, 0),
	                                                              ^
…and a few dozen very similar errors.

I think this is a version conflict with SpiderMonkey; maybe homebrew isn’t smart enough to pick the right
version to compile with. And I’m not smart enough with homebrew to figure out how to reconfigure it.

To be honest I’d much rather just download a binary of CouchDB 1.2, but there doesn’t seem to be one. Is no
one keeping CouchDBX up to date?

—Jens
Pulkit Singhal | 12 May 17:33
Picon
Gravatar

Request access to ContributorsGroup to edit the wik

Hello,

My wiki username is pulkitsinghal, can I please have access to edit the
wiki?

I want to contribute some reduce/rereduce samples to the following page:
http://wiki.apache.org/couchdb/Introduction_to_CouchDB_views

Thanks,
- Pulkit
Tim Tisdall | 10 May 20:46
Picon

problems with etc/init.d/couchdb script

I've tried doing lots of Google searches for an answer to this, but I
haven't been successful...

I've installed Couchdb 1.2 from source on Debian 6.  I configured it
with *--localstatedir=/var
--sysconfdir=/etc . Everything seems to be installed correctly.*
*
*
*If I run couchdb from the command prompt it seems to run correctly and I'm
able to hit the port with curl and get *{"couchdb":"Welcome","version":"1.2.0"}
successfully. If I run it as "couchdb -b" it also works properly.

Now, the problem... if I try to run things using /etc/init.d/couchdb it
doesn't seem to work properly. I don't get any error messages but the curl
request returns "couldn't connect to host". Also, there seems to be a
process running under the couchdb user id, but it's not the same process
number as what's found in /var/run/couchdb/couchdb.pid. ps reports it as
"/bin/sh -e /usr/local/bin/couchdb -a /etc/couchdb/default.ini -a
/etc/couchdb/local.ini -b -r 5 -p /var/run/couchdb/couchdb.pid -o /dev/null
-e /dev/null -R" but there's no response using curl.

Anyone have any ideas how to track down the problem? I don't see any errors
in the logs.

I've tried redirecting the STDERR to /dev/log/couchdb/stderr.log but get
the error "Starting database server: couchdbApache CouchDB needs write
permission on the STDERR file: /dev/log/couchdb/stderr.log" despite giving
it full write permissions.

Gmane