Re: How to implement multiple-tables/collections using CouchDB?

2014-09-11 Thread Landry Soules
You're right, in order to get something similar to Mongo's collections or RDBMS' tables, you will have to add a "documentType" property to all your documents. Sent with [inky: ] Eric B wrote: I've been reading up on CouchDB and am very confused as to its applicat

Re: Spring data for CouchDB?

2014-09-10 Thread Landry Soules
Hello Eric, As Andy wrote, CouchBD HTTP API is really simple to interact with. Basically with Spring you will only need RestTemplate to communicate and Jackson to translate your objects in JSON. Here is a code sample showing how to save a new object: ​http://pastebin.com/s3au8Vgp Sent with [

Which view is better optimized ?

2014-07-22 Thread Landry Soules
Hello, I have a simple users document containing fields such as gender, age and last seen date. I have to request these documents by age, or gender, or last seen date or a mix of these criteria. My question is : is it more efficient to create a single view containing several emit, for example: emi