I do not really understand how you are storing the data in CouchDB. What do you mean when you say "table"? CouchDB doesn't really have those...
On February 1, 2015, Ayhan Kesenci <[email protected]> wrote: > okay thank you, do u have a tip, how to solve the problem with the comma, > in text ? if i import in excel, there to big spaces, because of the comma, > is there a way to declare semicolon, as the divider between the tables ? > > 2015-02-01 15:30 GMT+01:00 Jonas Weber <<[email protected]>>: > > > It is a common "mistake" to emit a document or document id from a view; if > > it is not mirroring your _id, please ignore my last comment. > > > > > > On February 1, 2015, Ayhan Kesenci <<[email protected]>> wrote: > > > > what do you mean, with id_str ?, but it is in the same datafile ! > > > > 2015-02-01 14:59 GMT+01:00 Jonas Weber <<[email protected]>>: > > > > Because emit() takes two parameters, one is the key, one is the value. > > > > However, you can emit arrays as key and/or as value, and they will be > > sorted as expected: > > > > emit([doc.user.friends_count, doc.user.followers_count], doc.id_str); > > > > Or something similar... > > > > By the way, what is id_str? If you want to use the doc when requesting the > > view, it is better to request the document directly with > > ?include_docs=true, saving you a roundtrip to the server. > > > > > > On February 1, 2015, Ayhan Kesenci <<[email protected]>> wrote: > > > > Why it is not possible to create a view like this > > > > function(doc) { > > emit(doc.user.friends_count,doc.user.followers_count,doc.id_str); > > } > > > > > > ?? > > > > > > > >
