Katharina Jockenhöfer | 3 Sep 21:51 2015

[BLOG] The CouchDB Weekly News, September 3, is out!

Hi everybody! 

Here we go with the CouchDB Weekly News:
http://blog.couchdb.org/2015/09/03/couchdb-weekly-news-september-03-2015/ <http://blog.couchdb.org/2015/09/03/couchdb-weekly-news-september-03-2015/>

Authenticate with JSON Web Token
Options for ‘OAuth’ with CouchDB
The CouchDB tag-line
A long list of releases for CouchDB and PouchDB (couchdown 1.2.0, spawn-pouchdb-server 3.0.0…)
In opinion and news: Joan Touzet's keynote from Texas LinuxFest ““Evolve Or Perish! Improving
Communities The Apache Way”, Bradley Holt's webinar  “A Deep Dive into Offline-First with PouchDB
and IBM Cloudant", FAST: PouchDB 4.0.1… 
Plenty of Releases in the CouchDB and PouchDB universe
Questions and Use Cases
Events and job openings for CouchDB folks
And a lot to read and relax!

Thanks to Joan, Garren, Andy and Michael Alan for submitting news!

You're welcome to share the news in the social networks of your choice and help us promote CouchDB:

https://twitter.com/CouchDB/status/639525398393565184?lang=en <https://twitter.com/CouchDB/status/639525398393565184?lang=en>

https://www.facebook.com/permalink.php?story_fbid=685736741458553&id=507603582605204 <https://www.facebook.com/permalink.php?story_fbid=685736741458553&id=507603582605204>

https://plus.google.com/b/109226482722655790973/+CouchDB/posts/8uYCSMhUfYP <https://plus.google.com/b/109226482722655790973/+CouchDB/posts/8uYCSMhUfYP>
(Continue reading)

Matti Eerola | 3 Sep 13:51 2015

Authenticate with JSON Web Token

I wrote an authentication plugin to CouchDB. It authenticates the user
using JSON Web Token that is sent with each request in Authorization HTTP
header. You can find it from https://github.com/softapalvelin/couch_jwt_auth.
Is anyone interested in trying it out? I'd like to hear what you think
about it.

I also modified PouchDB getting-started-todo project to use Auth0 and
couch_jwt_auth. It gives you better understanding how the plugin can be
used in real applications.

Matti Eerola
Katharina Jockenhöfer | 3 Sep 13:45 2015

CouchDB Weekly News – Submissions

Hello all!

please send me submissions for the CouchDB Weekly News if you have any!!

Especially for 
- News in the CouchDB and PouchDB universe
- Opinions, good articles/talks 
- Interesting use cases
- CouchDB related events

Your support is much appreciated.

Have a great day!
Luca Morandini | 2 Sep 09:57 2015

How to set CouchJS memory in CouchDB 2.0?


Since the release of CouchDB 2.0 is nigh, I started to test the waters by running 
my applications integration tests, which run mostly fine.

However, when parsing a relatively large document I incur in:
<<out of memory
SyntaxError: JSON.parse>>

Of course, before running the failing integration tests, I changed the couchjs max 
memory to the same value I use in CouchDB 1,5:
javascript = ~/git/couchdb/bin/couchjs -S 134217728 

Is this the correct way to set the CouchJS memory in CouchDB 2.0?


Luca Morandini
Data Architect - AURIN project
Melbourne eResearch Group
Department of Computing and Information Systems
University of Melbourne
Tel. +61 03 903 58 380
Skype: lmorandini

Katharina Jockenhöfer | 27 Aug 20:13 2015

[BLOG] The CouchDB Weekly News, August 27, is here!

Hello everyone! 

Here we go with the CouchDB Weekly News:
http://blog.couchdb.org/2015/08/27/couchdb-weekly-news-aug-27-2015/ <http://blog.couchdb.org/2015/08/27/couchdb-weekly-news-aug-27-2015/>

Share your experience of teaching CouchDB
Performance tuning parameters
Releases for CouchDB and PouchDB (tape-recorder 1.0.1, Kazana-bootstrap 2.0.0 and pouch-lru-cache 1.1.4…)
In opinion and news: Transcript of Joan Touzet's talk "Evolve Or Perish! Improving Communities The Apache Way"
Extensive list of questions and discussion on StackOverflow over CouchDB and PouchDB – join in!
And some good reads for the weekend
You're welcome to share the news in the social networks of your choice and help us promote CouchDB:

https://twitter.com/CouchDB/status/636963850529701889 <https://twitter.com/CouchDB/status/636963850529701889>
https://www.facebook.com/permalink.php?story_fbid=683484351683792&id=507603582605204 <https://www.facebook.com/permalink.php?story_fbid=683484351683792&id=507603582605204>

https://plus.google.com/u/1/b/109226482722655790973/+CouchDB/posts/G8yLSp2S39b <https://plus.google.com/u/1/b/109226482722655790973/+CouchDB/posts/G8yLSp2S39b>

https://www.linkedin.com/company/5242010/comments?topic=6042729099342938112&type=U&scope=5242010&stype=C&a=p-XP&goback=%2Ebzo_*1_*1_*1_*1_*1_*1_*1_*1_apache*5couchdb <https://www.linkedin.com/company/5242010/comments?topic=6042729099342938112&type=U&scope=5242010&stype=C&a=p-XP&goback=.bzo_*1_*1_*1_*1_*1_*1_*1_*1_apache*5couchdb>


Thank you all for your support!
Jonathan Hall | 27 Aug 19:06 2015

Options for OAuth with CouchDB

I'm working on a hybrid mobile/web app and find the prospect of using 
CouchDB quite promising.  The biggest obstacle I'm facing at the moment 
is how to handle authentication.

I realize that CouchDB supports its own users database, which 
undoubtedly I will need to utilize (especially since I'll need to create 
one database per user of my app, for permission segmentation).

But I want my app to allow logins via Facebook and Google (at minimum).  
What is the most common way to accomplish this with a CouchDB app?

I figure I must have a server process somewhere that is has 
administrative privileges to Couchdb, and handles the OAuth2 auth 
requests, creates new users, etc, and hands the CouchDB credentials (or 
cookie) to the app client.

Is this indeed the best approach?  Are there third party libraries or 
services that handle this for me? I don't mind paying for such a service 
(my dev time is worth more than monthly subscription fees in most cases).

I've been looking at various third party services such as OAuth.io, 
Amazon Cognito, and even Firebase, to help with some of this.  I'm 
honestly a bit overwhelmed with the options and trying to parse 
marketing materials to decide if any of these services are granular 
enough to even help me. I'd really like to stick with CouchDB, to avoid 
the vendor lock-in that would come with a more complete solution like 

I realize the question is a bit open-ended. I hope that's not 
problematic to getting a general/overview answer.
(Continue reading)

Carlos Pacheco | 27 Aug 13:45 2015

Space used to Compaction

Hi !

I’m planing to create a ECM system using CouchDB to store metadata and binary files.

Nowadays I use PostgreSQL to metadata and filesystem to binary files.

My preoccupation is that I have databases (metadata + binary files) up to 10TB.

If I store all on CouchDB, when it compact database, I will need twice this space in disk ("available disk
space - it should be twice greater than the compacted file’s data) !!! 

This is very expensive to have.

Are There another way ?

Do you have some tip or trick about this (store binary files) on database ?

Please Advice welcome !!!

Carlos - Brazil.
Geerd-Dietger Hoffmann | 24 Aug 20:11 2015

CouchDB Certification

Hello list,

I am currently planning a NoSQL/ CouchDB course for Nigeria/ Sierra Leon and Liberia to be taught to
talented young computing people. As I don’t just want to give them my personal approval my question is:
Is there some “official” test people can take to prove they understand the basics. Something similar
to the LPI for Linux?

Thank you for your feedback, Didi Hoffmann
Stefan Klein | 22 Aug 14:02 2015

Query view with keys, is order guaranteed?

Hi CouchDB users,

when I query a view with keys=["keyA", "keyB"] the returnd rows also
list the matches for "keyA" first, then matches for "keyB". If i query
with ["keyB","keyA"] the results reflects this and lists matches for
"keyB" first.
This is for my local couchdb 1.6.1.
Is this behaviour guaranteed for 1.6.1?
Will it also be guaranteed for 2.x?
Or does couchdb just happen to behave so on my installation?


Katharina Jockenhöfer | 20 Aug 21:14 2015

[BLOG] The CouchDB Weekly News, August 20, is out!

Hi everybody! 

Here we go with the CouchDB Weekly News:
http://blog.couchdb.org/2015/08/20/couchdb-weekly-news-august-20-2015/ <http://blog.couchdb.org/2015/08/20/couchdb-weekly-news-august-20-2015/>

Joan Touzet interview on “CouchDB and the Apache way”
Feedback for Fauxton
A long list of releases for CouchDB and PouchDB (couchdown 1.2.0, spawn-pouchdb-server 3.0.0…)
In opinion and news: Leeds JS Talk: "JavaScript Offline First"
Questions and Use Cases for CouchDb and PouchDB
Events and job openings for CouchDB friends
And a lot to read and relax!

Thanks to Joan, Lena and everyone for submitting news!

You're welcome to share the news in the social networks of your choice and help us promote CouchDB:

https://www.linkedin.com/company/5242010/comments?topic=6040207756646981632&type=U&scope=5242010&stype=C&a=fMet&goback=%2Ebzo_*1_*1_*1_*1_*1_*1_*1_*1_apache*5couchdb <https://www.linkedin.com/company/5242010/comments?topic=6040207756646981632&type=U&scope=5242010&stype=C&a=fMet&goback=.bzo_*1_*1_*1_*1_*1_*1_*1_*1_apache*5couchdb>
https://www.facebook.com/permalink.php?story_fbid=681361378562756&id=507603582605204 <https://www.facebook.com/permalink.php?story_fbid=681361378562756&id=507603582605204>
https://plus.google.com/u/1/b/109226482722655790973/+CouchDB/posts/MxbpvzBzspw <https://plus.google.com/u/1/b/109226482722655790973/+CouchDB/posts/MxbpvzBzspw>
https://plus.google.com/u/1/b/109226482722655790973/+CouchDB/posts/PqJ3BJ21kBw <https://plus.google.com/u/1/b/109226482722655790973/+CouchDB/posts/PqJ3BJ21kBw>

Thank you all for your support!
Florin Andrei | 20 Aug 19:59 2015

performance tuning and optimization guidelines

For older databases like Postgres there are documents describing 
performance tuning, such as this one:


It's pretty easy to get a 10x performance improvement for queries on 
large datasets if you apply techniques like that.

Are there any similar guidelines for CouchDB?


Florin Andrei