cloudant

how to increase the sample size used during schema discovery to 'unlimited'?

99封情书 提交于 2019-11-29 18:10:30
I have encountered some errors with the SDP where one of the potential fixes is to increase the sample size used during schema discovery to 'unlimited'. For more information on these errors, see: No matched schema for {"_id":"...","doc":{...} The value type for json field XXXX was presented as YYYY but the discovered data type of the table's column was ZZZZ XXXX does not exist in the discovered schema. Document has not been imported Question: How can I set the sample size? After I have set the sample size, do I need to trigger a rescan? These are the steps you can follow to change the sample

Cloudant/Mango selector for deeply nested JSONs

我怕爱的太早我们不能终老 提交于 2019-11-29 13:03:42
Let's say some of my documents have the following structure: { "something":{ "a":"b" }, "some_other_thing":{ "c":"d" }, "what_i_want":{ "is_down_here":[ { "some":{ "not_needed":"object" }, "another":{ "also_not_needed":"object" }, "i_look_for":"this_tag", "tag_properties":{ "this":"that" } }, { "but_not":{ "down":"here" } } ] } } Is there a Mango JSON selector that can successfully select on "i_look_for" having the value "this_tag" ? It's inside an array (i know its position in the array). I'm also interested on filtering the result so I only get the "tag_properties" in the result. I have

Select distinct count cloudant/couchdb

对着背影说爱祢 提交于 2019-11-29 01:13:49
问题 I am starting a project using Cloudant. It's a simple system for logging, so I can track the usage of my apps. My documents looks like this: { app:'name of the app', type:'page view | login | etc..', owner:'email_of_the_user', device: 'iphone | android | etc..', date: 'yyyy-mm-dd' } I've tried to do some map reducing and faceted searches, but couldn't find so far the result for what I want. I want to count the number of distinct documents grouped by same owner, date (yyyy-mm-dd), and app.

Difference between Cloudant and CouchOne?

只愿长相守 提交于 2019-11-28 20:51:39
I wonder what the difference is between Cloudant and CouchOne. Update (2015) Currently, according to Professional Services on CouchDB Wiki , there are 3 CouchDB hosting services: Smileupps Cloudant Iris Couch Since this question is specifically about Cloudant and CouchOne, here's more info: Cloudant was bought by IBM in March 2014 - see IBM Completes Acquisition of Cloudant - and continues to operate. According to Wikipedia: "Cloudant is an IBM software product, which is primarily delivered as a cloud-based service. Cloudant is an open source non-relational, distributed database service of the

Cloudant/Mango selector for deeply nested JSONs

梦想的初衷 提交于 2019-11-28 06:43:57
问题 Let's say some of my documents have the following structure: { "something":{ "a":"b" }, "some_other_thing":{ "c":"d" }, "what_i_want":{ "is_down_here":[ { "some":{ "not_needed":"object" }, "another":{ "also_not_needed":"object" }, "i_look_for":"this_tag", "tag_properties":{ "this":"that" } }, { "but_not":{ "down":"here" } } ] } } Is there a Mango JSON selector that can successfully select on "i_look_for" having the value "this_tag" ? It's inside an array (i know its position in the array). I

Cloudant Selector Query

大憨熊 提交于 2019-11-27 14:27:04
I would like to query using cloudant db using selector, for example that is shown below: user would like to have loanborrowed whose amount exceeds a number, how to access the array in a cloudant selector to find a specific record { "_id": "65c5e4c917781f7365f4d814f6e1665f", "_rev": "2-73615006996721fef9507c2d1dacd184", "userprofile": { "name": "tom", "age": 30, "employer": "Microsoft" }, "loansBorrowed": [ { "loanamount": 5000, "loandate": "01/01/2001", "repaymentdate": "01/01/2001", "rateofinterest": 5.6, "activeStatus": true, "penalty": { "penalty-amount": 500, "reasonforPenalty": "Exceeded

Difference between Cloudant and CouchOne?

旧时模样 提交于 2019-11-27 13:13:56
问题 I wonder what the difference is between Cloudant and CouchOne. 回答1: Update (2015) Currently, according to Professional Services on CouchDB Wiki, there are 3 CouchDB hosting services: Smileupps Cloudant Iris Couch Since this question is specifically about Cloudant and CouchOne, here's more info: Cloudant was bought by IBM in March 2014 - see IBM Completes Acquisition of Cloudant - and continues to operate. According to Wikipedia: "Cloudant is an IBM software product, which is primarily

Connect to Cloudant CouchDB with Node.js?

▼魔方 西西 提交于 2019-11-27 12:57:06
问题 I am trying to connect to my CouchDB database on Cloudant using Node.js. This worked on the shell: curl https://weng:password@weng.cloudant.com/my_app/_all_docs But this node.js code didn't work: var couchdb = http.createClient(443, 'weng:password@weng.cloudant.com', true); var request = couchdb.request('GET', '/my_app/_all_docs', { 'Host': 'weng.cloudant.com' }); request.end(); request.on('response', function (response) { response.on('data', function (data) { util.print(data); }); }); It

How can I use my sql knowledge with Cloudant/CouchDB?

巧了我就是萌 提交于 2019-11-27 04:07:24
Some developers who have a good knowledge of querying SQL databases struggle to implement the equivalent query patterns in Cloudant/CouchDB. How can these developers translate their SQL knowledge to Cloudant/CouchDB? Chris Snow This community wiki page provides links to some SQL patterns showing how they may be implemented in Cloudant. As this is a community wiki feel free to add new Q&A links here. General database queries Joining two documents by key? How do I do the SQL equivalent of “DISTINCT” in CouchDB? How do I do a triple join in CouchDB? Inner joining by document field? How do I do

Cloudant Selector Query

≡放荡痞女 提交于 2019-11-26 18:24:34
问题 I would like to query using cloudant db using selector, for example that is shown below: user would like to have loanborrowed whose amount exceeds a number, how to access the array in a cloudant selector to find a specific record { "_id": "65c5e4c917781f7365f4d814f6e1665f", "_rev": "2-73615006996721fef9507c2d1dacd184", "userprofile": { "name": "tom", "age": 30, "employer": "Microsoft" }, "loansBorrowed": [ { "loanamount": 5000, "loandate": "01/01/2001", "repaymentdate": "01/01/2001",