Re: Replication not reaching 100% and consuming lots of CPU on destination node

2015-02-05 Thread Giovanni P
I don't know. Can it be attachments? On Thu, Feb 5, 2015 at 5:19 PM, Roger Sindreu ro...@empaytech.com wrote: Any suggestions/ideas on that? Any help will be appreciated. Thanks On Mon, Feb 2, 2015 at 11:57 AM, Roger Sindreu ro...@empaytech.com wrote: Hi everyone, Nice to be here and

Re: Export question

2015-02-05 Thread Giovanni P
Why do you want that? Values that are surrounded by quotes are strings. Do you want strings? You just need to convert your values to strings when emitting them, like function(doc) { emit([doc.user.friends_count.toString(), doc.user.followers_count .toString(), doc.retweet_count.toString(),

Re: Replication not reaching 100% and consuming lots of CPU on destination node

2015-02-05 Thread Roger Sindreu
Any suggestions/ideas on that? Any help will be appreciated. Thanks On Mon, Feb 2, 2015 at 11:57 AM, Roger Sindreu ro...@empaytech.com wrote: Hi everyone, Nice to be here and thanks everyone for their support to couchdb. We have a installation with couchdb 1.2.2 (a few gigabytes and

Strange issue with dates

2015-02-05 Thread Kiril Stankov
Hi, I have two update handlers: |||SetCancelled|:|function(doc,req) {doc['cancelled']=true; doc['cancelledDate']=Date.now(); return [doc, 'ok'];}|, |SetLastVisit|:|function(doc,req) {doc['lastvisit']=Date.now(); return [doc, 'ok'];} ||| How can it be one is writing the date as Unix date,

Re: Strange issue with dates

2015-02-05 Thread Kiril Stankov
Sorry, simply pasting from Futon... Ignore them. SetCancelled: function(doc,req) {doc['cancelled']=true; doc['cancelledDate']=Date.now(); return [doc, 'ok'];}, SetLastVisit: function(doc,req) {doc['lastvisit']=Date.now(); return [doc, 'ok'];} cancelled: true, cancelledDate:

Re: Strange issue with dates

2015-02-05 Thread Giovanni P
what is this formatting you're using? it is really difficult to read all those ||| On Thu, Feb 5, 2015 at 10:07 PM, Kiril Stankov ki...@open-net.biz wrote: Hi, I have two update handlers: |||SetCancelled|:|function(doc,req) {doc['cancelled']=true; doc['cancelledDate']=Date.now(); return

Re: Strange issue with dates

2015-02-05 Thread Stanley Iriele
There is probably something off happening when parsing dates between what's stored on disk in erlang what's sent back. Remember dates are not a thing in JSON. My advice would be to NEVER STORE DATES. New date().getTime() and just get the milliseconds...and when you want to use it use new