TAE JIN KIM | 29 Jan 17:02 2015
Picon

RE: Why am i seeing this behavior?

Are you sure I can use list function for this purpose?
I tried, but it is same behavior.

> Date: Thu, 29 Jan 2015 04:45:49 +0400
> Subject: Re: Why am i seeing this behavior?
> From: kxepal <at> gmail.com
> To: user <at> couchdb.apache.org
> 
> View function get executed once on view resource request for only
> updated documents.
> Once document get indexed, the result is stored in view index file and
> read from there since that moment.
> If you need request-depended view results use list functions instead.
> --
> ,,,^..^,,,
> 
> 
> On Thu, Jan 29, 2015 at 3:33 AM, TAE JIN KIM <snowebang <at> hotmail.com> wrote:
> > Hello,
> >
> > Here is my view.
> >
> > function(doc) {
> >       var cloned = eval(uneval(doc));
> >       cloned.status = myfunction(cloned.createddate);
> >   …
> >  ..
> > }
> >
> > function myfunction(cd) {
(Continue reading)

TAE JIN KIM | 29 Jan 02:04 2015
Picon

RE: Why am i seeing this behavior?

I see...but is there any way I can optionally force it somehow so the view always get executed whenever it is
invoked by the REST api? (Let's suppose list function is not my option)



> Date: Thu, 29 Jan 2015 04:45:49 +0400
> Subject: Re: Why am i seeing this behavior?
> From: kxepal <at> gmail.com
> To: user <at> couchdb.apache.org
> 
> View function get executed once on view resource request for only
> updated documents.
> Once document get indexed, the result is stored in view index file and
> read from there since that moment.
> If you need request-depended view results use list functions instead.
> --
> ,,,^..^,,,
> 
> 
> On Thu, Jan 29, 2015 at 3:33 AM, TAE JIN KIM <snowebang <at> hotmail.com> wrote:
> > Hello,
> >
> > Here is my view.
> >
> > function(doc) {
> >       var cloned = eval(uneval(doc));
> >       cloned.status = myfunction(cloned.createddate);
> >   …
> >  ..
> > }
(Continue reading)

Lena Reinhard | 27 Jan 20:21 2015
Lena Reinhard | 26 Jan 15:11 2015

[NEWS] Your links for the CouchDB Weekly News

Hi everyone,

if you want to submit a link for the next CouchDB Weekly News, please send it to this thread until tuesday,
January 27, 4pm CET.

Best,
Lena

Alexander Shorin | 25 Jan 06:55 2015
Picon

Re: couchdb database size

Hi Sharath,

What is your CouchDB version?
Could you provide data_size and disk_size values from database info for both?
curl http://localhost:5984/db1
curl http://localhost:5984/db2
--
,,,^..^,,,

On Sun, Jan 25, 2015 at 7:11 AM, Sharath <sharath.m@...> wrote:
> Hi All,
>
> recently moved to couchdb and find my databases taking a lot of diskspace
>
> I have two database both with json documents (no attachments) - however the
> sizes vary by a lot
>
> database1      size 8.0GB    number of documents: 13337224
> database2      size 29.4 GB    number of documents: 12981148
>
> both the databases have been compacted
>
> each document in database1 is 487 bytes long (including _id and _rev)
> each document in database2 is 564 bytes long (including _id and _rev)
>
> database1 should be ~6.1GB (only data without compression) [487 * 13337224
> / 1024 /1024]
> database2 should be ~6.9GB (only data without compression) [564 * 12981148
> / 1024 /1024]
>
(Continue reading)

Sharath | 25 Jan 05:11 2015
Picon

couchdb database size

Hi All,

recently moved to couchdb and find my databases taking a lot of diskspace

I have two database both with json documents (no attachments) - however the
sizes vary by a lot

database1      size 8.0GB    number of documents: 13337224
database2      size 29.4 GB    number of documents: 12981148

both the databases have been compacted

each document in database1 is 487 bytes long (including _id and _rev)
each document in database2 is 564 bytes long (including _id and _rev)

database1 should be ~6.1GB (only data without compression) [487 * 13337224
/ 1024 /1024]
database2 should be ~6.9GB (only data without compression) [564 * 12981148
/ 1024 /1024]

I'm curious why the database file takes 29 GB.

unfortunately I cannot post the document as this is prod data.

CouchDb is running on my mac 10.10.1 with default configuration.

database1 was populated by a bulk upload from a mysql extract and database
2 was populated by individual document inserts (put) database compaction
was let to complete (took ~30hr on database 2)

(Continue reading)

Ingo Radatz | 23 Jan 11:50 2015

Re: can't run couchdb run as couchdb user / only root works

I think you are right when the browser is the runtime environment you 
have in mind (and sorry ;-) i'm blind for all mentions of "couchbase")

But Android is used for a growing number of cheap but more and more 
powerful devices. I think we should have an eye on it - IMO it will turn 
into an interesting AND serious use case. If i see a wider adoption in 
production i will definitely try to push that into the CouchDBs 
marketing channel. Par example i know a pilot project of a german 
windmill farm - they test CouchDB for the embed systems on top of 
android. I would love to see more CouchDB's in such innovative and 
future-orientated products!

> oh, didn't know couchdb could be run on phones. I thought we had to use
> pouchdb for that (in the browser) or couchbase lite
> I guess this is only useful for well informed and versed insiders?
> Alex
>
>
> 2015-01-22 14:59 GMT+01:00 Ingo Radatz <thewhorn@...>:
>
>> thank you for sharing the solution
>>

Ayhan Kesenci | 21 Jan 19:39 2015

Is it

Is it possible to export a couchdb view ?
Boaz Citrin | 21 Jan 14:32 2015
Picon

Outdated view right after bulk document update

Hello,

We are having a strange issue using the bulk document API of couchdb 1.2.1;

1. We have a view on a field say 'directory'.
2. We send a bulk update for 50+ documents changing their 'directory'
3. We send a view query with the key being the former directory value
4. Response contains documents that should have been changed.
5. Sending a second request after a fraction gives an empty expected
response.

Note that we don't query with stale=ok.

Any idea?

Thanks!

Boaz
Dr. Johannes Zellner | 20 Jan 23:01 2015

can't run couchdb run as couchdb user / only root works

Hi,

I installed couchdb 1.6.1 on *debian 8.0, armv7l* mostly according to

https://cwiki.apache.org/confluence/display/COUCHDB/Debian
http://docs.couchdb.org/en/1.6.1/install/unix.html

*unfortunately it runs only as root, not as couchdb user although **I 
followed the instructions for ownership and permissions*, especially:

|sudo mkdir -p /usr/local/{lib,etc}/couchdb 
/usr/local/var/{lib,log,run}/couchdb
|
|sudo chown -R couchdb:couchdb /usr/local/{lib,etc}/couchdb 
/usr/local/var/{lib,log,run}/couchdb|
|sudo chmod -R g+rw /usr/local/{lib,etc}/couchdb 
/usr/local/var/{lib,log,run}/couchdb|

--> *all couchdb directories and their content under /usr/local are 
owned by couchdb.couchdb*.

When starting couchdb as couchdb user I get:

couchdb <at> localhost:~$ couchdb
Apache CouchDB 1.6.1 (LogLevel=info) is starting.
Failure to start Mochiweb: eacces
[error] [<0.101.0>] {error_report,<0.30.0>,
                      {<0.101.0>,crash_report,
                       [[{initial_call,
{mochiweb_socket_server,init,['Argument__1']}},
(Continue reading)

Lena Reinhard | 20 Jan 17:27 2015

Gmane