couchbase

How to capture save or update events in Couchbase

Deadly 提交于 2020-07-20 08:51:59
问题 I would like to be able to do some data manipulation when documents are updated or created in Couchbase. Documents can arrive in our database either via Sync Gateway or our own code which streams data in from an http service. It would be great to have one place where I can intercept all updates. We are running a Spring Boot REST API against this data so this would be the good place to have the interceptor/listener. Either way my preference would be for a Java solution. The data is written as

How to move a index from one index node to anther index node in couchbase

丶灬走出姿态 提交于 2020-06-28 03:33:33
问题 I have 6 index nodes in couchbase cluster. I would like to replace once index node and move indexes from old index node to new index node. What is best practice for moving indexes from once node to another ? 回答1: In Couchbase 5.5, you can use the ALTER INDEX statement to move an index from one node to another. Couchbase 5.5 will be released within a couple of weeks. https://developer.couchbase.com/documentation/server/5.5/n1ql/n1ql-language-reference/alterindex.html 来源: https://stackoverflow

How to move a index from one index node to anther index node in couchbase

微笑、不失礼 提交于 2020-06-28 03:32:20
问题 I have 6 index nodes in couchbase cluster. I would like to replace once index node and move indexes from old index node to new index node. What is best practice for moving indexes from once node to another ? 回答1: In Couchbase 5.5, you can use the ALTER INDEX statement to move an index from one node to another. Couchbase 5.5 will be released within a couple of weeks. https://developer.couchbase.com/documentation/server/5.5/n1ql/n1ql-language-reference/alterindex.html 来源: https://stackoverflow

Couchbase No Index Available

帅比萌擦擦* 提交于 2020-06-27 16:08:23
问题 We are having problems with a couchbase N1QL Query. We have an index defined as follows: CREATE INDEX `AppUser_SubjectId3` ON `Portal`(`SubjectId`) WHERE ((meta(self).`id`) like `AppUser%`) We are then trying to run the following query: SELECT RAW `Extent1` FROM `Portal` as `Extent1` USE INDEX (`AppUser_SubjectId3` USING GSI) WHERE (`Extent1`.`SubjectId` = 'c8ea08231c3a985a06342355b87d6e2d6290a985d5c3592e5b8e5e5f14608a08') And get the following error: No index available on keyspace Portal

couchbase configuration on docker

偶尔善良 提交于 2020-05-29 10:40:47
问题 Hello I am very new on Docker and I want to make some initial configuration in the couchbase like that: Create a bucket Set admin password I want to automate these two process. Because: When I first run couchbase-db on docker (docker-compose up -d couchbase db) I am going localhost:8091 and I am setting admin password. If I didnt do this when first running, I could not run couchbase properly. What are ways to do this? Is there any images for doing this? Can I change Docker file for initial