couchbase

N1QL Query times out when Using parameterized IN clause

拥有回忆 提交于 2019-12-06 22:40:21
问题 Using Couchbase server 4.1.0 (and 4.5), Java SDK 2.2.8 (also tried with 2.2.7, 2.3.1, & 2.3.3), I have a query leveraging a secondary index which runs fine when I run my code locally and even via CBQ (CBQ takes about 3ms) on the AWS server. However, when running my app on AWS, I get a TimeOutException and it's only one query which is timing out, others are not. See details below. May be worth noting my Couchbase setup has 3 buckets. Example Doc: "bucketName": { "userName": "User_A",

Bucket password in Couchbase

半世苍凉 提交于 2019-12-06 20:04:24
问题 I am creating a demo project for reative programming with springboot and Couchbase. I have set the below properties in application.properties file: spring.couchbase.bootstrap-hosts=localhost spring.couchbase.bucket.name=vanquish spring.couchbase.bucket.password= spring.data.couchbase.repositories.type=auto As I don't have any bucket level password while creating it. Still, service is not able to start because of below exception: Caused by: com.couchbase.client.java.error

Import JSON file into Couchbase using cbdocloader

走远了吗. 提交于 2019-12-06 13:58:24
I use cbdocloader command to import different json file into couchbase database. If my file content json like below {"displayName":"Login","controller":"AppCtrl","action":"login","endpoint":"","group":0,"_type":"Permission"} it is working fine. But if my json content _id it will automatically exclude it from import I want to import my json like below {"_id":"3dfd4bb0-aff4-11e6-8a96-8598a3ef40c4","displayName":"Login","controller":"AppCtrl","action":"login","endpoint":"","group":0,"_type":"Permission"} How can I do this using cbdocloader ?? Couchbase Server 4.5 treats _id in a different way:

php ini change local value

微笑、不失礼 提交于 2019-12-06 13:27:14
I just setup php55 with apache on CentOS. I am also running Couchbase to handle memcached sessions. I have one server running fine. The other keeps trying to save php sessions locally. Not sure why. The php config has session.save_handler=memcached and session.save_path="cb.path:11211" The phpinfo page still lists the temp session path as the "local" option and the handler to files, but get_session_save_path() returns the couchbase url. How do I find where the local value is being set? Carter /etc/httpd/conf.d/php.conf had php_value declarations over writing the local variable. #php_value

Spark Java: How to move data from HTTP source to Couchbase sink?

做~自己de王妃 提交于 2019-12-06 11:10:44
问题 I've a .gz file available on a Web server that I want to consume in a streaming manner and insert the data into Couchbase. The .gz file has only one file in it, which in turn contains one JSON object per line. Since Spark doesn't have a HTTP receiver, I wrote one myself (shown below). I'm using Couchbase Spark connector to do the insertion. However, when running, the job is not actually inserting anything. I've a suspicion that it is due to my inexperience with Spark and not knowing how to

Difference between couchbase and couchbase lite? [Previously called as touchDB]

陌路散爱 提交于 2019-12-06 07:56:54
问题 What is Couchbase and what is Couchbase Lite? Is there any difference between the two? How could I create couchbase lite in mobile and how could i communicate to a server? 回答1: Do you happen to know about CouchDB? I don't know how far apart couchdb and couchbase are at the moment but I think very far. What I've understood so far is, Couchbase, Inc took the couchdb code and decided that they wanted to focus on speed. One of the most difficult parts (speed wise) of couchdb is the

Couchbase: Approach full disk warning while still have a lot of free disk space

巧了我就是萌 提交于 2019-12-06 07:43:45
We are using couchbase 3.0 and have around 67 GB free disk space, which is 35% free. But we face this warning this morning from the tab "Cluster Overview" in couchbase's admin page: Approaching full disk warning. Usage of disk "/" on node "local.node" is around 100% Even the admin page shows the correct Disk Overview: Usable Free Space (67.9 GB). But how come this warning appears? 来源: https://stackoverflow.com/questions/32982171/couchbase-approach-full-disk-warning-while-still-have-a-lot-of-free-disk-space

Designing record keys for document-oriented database - best practices

烈酒焚心 提交于 2019-12-06 06:41:01
问题 Our team has started development of an application backed by Couchbase DB; for every one of us it's the first experience with a no-SQL database. We've started to define our entities and adopted the practice of using "type" prefixes, suggested by Couchbase manual: Entity "A": key: a#123 Entity "B": key: b#123 But we realized that we're getting confused with choosing the strategy for creating compound document keys. We use counters a lot, and they require their own documents. Our keys have

Couchbase view on multiple columns with WHERE and ORDER BY clause as in SQL

拈花ヽ惹草 提交于 2019-12-06 05:23:34
I am new to Couchbase noSql database. I am trying to create a view, i want this view should give result as below SQL query. SELECT * FROM Employee e WHERE e.name = "DESM%" AND e.salary < 1000 ORDER BY e.id desc Any suggestion is very appreciated. If you look at existing beer samples in Couchbase (it comes with it), you will find views defined there. In admin console you can run a view. Notice when you run a view you can provide filtering criteria and sort order for the result...that might be an equivalent for your SQL like functionality. Read more on Views and Indexes yet another option is to

How do you sort results of a _View_ by value in the in Couchbase?

匆匆过客 提交于 2019-12-06 04:06:06
问题 So from what I understand in Couchbase is that one can sort keys* by using descending=true but in my case I want to sort by values instead. Consider the Twitter data in json format, my question is What it the most popular user mentioned? Each tweet has the structure of: { "text": "", "entities" : { "hashtags" : [ ... ], "user_mentions" : [ ...], "urls" : [ ... ] } So having used MongoDB before I reused the Map function and modified it slightly to be usable in Couchbase as follows: function