cloudant

No matched schema for {“_id”:“…”,“doc”:{…}

雨燕双飞 提交于 2019-12-02 10:34:31
When using the SDP to extract data from Cloudant and populate dashDB, I occasionally see error messages in the dashdb "XXXX_OVERFLOW" table that look like this: No matched schema for {"_id":"...","doc":{...} Questions What does this error mean? How can I fix it? Chris Snow There are two main phases to the SDP process: Schema analysis Data import In the schema analysis phase, the SDP analyses a sample of documents in Cloudant and uses the document structures of the sample to infer the target schema in dashDB. The above error is encountered when the SDP tries to import a document with a schema

What is the ECMAScript version supported in Cloudant (or CouchDB) design documents?

99封情书 提交于 2019-12-02 05:53:50
问题 The title contains the full question actually. In CouchDB (and Cloudant in particular) you write design documents with views using JavaScript. What is the supported ECMAScript version there? I could not find a relevant documentation. 回答1: I believe that Mozilla Spider Monkey is used for executing the design documents. The build documentation for CouchDB 2.0 state Mozilla Spider Monkey 1.8.5 as a dependency. You can find the release notes for 1.8.5 contain the following: SpiderMonkey 1.8.5 is

Cloudant: How to create an index for “Sort” function?

浪子不回头ぞ 提交于 2019-12-02 02:01:05
问题 The problem I am facing is on creating the correct index to query through my Cloudant database. The JSON data structure I am using looks similar to below. { "customer" : "123", "time" : "2014-11-20" } I want to sort the documents based on the time. The index query that I used is: curl -X POST 'https://<user>:<pass>@<user>.cloudant.com/<DB-name>/_index' -d ' { "index": { "fields": [ "customer", "time" ] } }' And the Query that I am using is: curl -X POST 'https://<user>:<pass>@<user>.cloudant

design pattern to expire documents on cloudant

旧城冷巷雨未停 提交于 2019-12-01 19:26:41
So when a document is deleted, the metadata is actually preserved forever. For a hosted service like cloudant, where storage costs every month, I instead would like to completely purge the deleted documents. I read somewhere about a design pattern where you use dbcopy in a view to put the docs into a 'current' db then periodically delete the expired dbs. But I cant find the article, and I don't quite understand how database naming would work. How would the cloudant clients always know the 'current' database name? Cloudant does not expose the _purge endpoint (the loose consistency guarantees

design pattern to expire documents on cloudant

放肆的年华 提交于 2019-12-01 18:03:52
问题 So when a document is deleted, the metadata is actually preserved forever. For a hosted service like cloudant, where storage costs every month, I instead would like to completely purge the deleted documents. I read somewhere about a design pattern where you use dbcopy in a view to put the docs into a 'current' db then periodically delete the expired dbs. But I cant find the article, and I don't quite understand how database naming would work. How would the cloudant clients always know the

SSL handshake failure for liberty application using cloudant

≯℡__Kan透↙ 提交于 2019-12-01 11:33:17
I've been stuck on this far longer than I want to admit. I want to connect to cloudant/couchdb using WebSphere Liberty. I'm fairly new to Java app development, Liberty, Cloudant and Bluemix. I believe I need to add a SSL certificate for cloudant in a local trust store but the only way to do it seems to be by using the Websphere Application Server Integrated Solutions Console, which I can't run using Liberty? If anyone can guide me in the right direction I would appreciate it alot! [ERROR ] CWPKI0022E: SSL HANDSHAKE FAILURE: A signer with SubjectDN CN=*.cloudant.com, OU=Engineering, O="Cloudant

SSL handshake failure for liberty application using cloudant

纵然是瞬间 提交于 2019-12-01 09:32:51
问题 I've been stuck on this far longer than I want to admit. I want to connect to cloudant/couchdb using WebSphere Liberty. I'm fairly new to Java app development, Liberty, Cloudant and Bluemix. I believe I need to add a SSL certificate for cloudant in a local trust store but the only way to do it seems to be by using the Websphere Application Server Integrated Solutions Console, which I can't run using Liberty? If anyone can guide me in the right direction I would appreciate it alot! [ERROR ]

CouchDB Views and Design Documents

旧时模样 提交于 2019-12-01 05:22:16
问题 For CouchDB you can create multiple views and/or multiple design documents. Is it better to group views in the same design document or keep each view to its own design document? 回答1: Internally, views within each design document are managed together in a "view group". Each view group spawns a separate view server when accessed - i.e. if there are 8 view groups, you will have 8 JavaScript processes. This certainly has design and performance implications. From the CouchDB documentation, View

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

微笑、不失礼 提交于 2019-11-30 09:52: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

Cloudant auth: lacks _users database

孤人 提交于 2019-11-30 00:17:16
I'm getting set up with CouchDB on Cloudant, and I'm confused because Cloudant seems to do auth differently than regular CouchDB. Specifically, Cloudant seems to lack a _users database. I read the Cloudant auth FAQ here , and it provided the following instructions: Can I use CouchDB security features (_users database, security objects, validation functions) on Cloudant? Yes you can. If you want to use the _users database you must first turn off Cloudant's own security for the roles you want to manage via _users. To do this you need to PUT a JSON document like the following to the _security