December 2018 Summaries
10 posts from Couchbase
Filter
Month:
Year:
Post Summaries
Back to Blog
The text explores the importance of incorporating robust search capabilities in app design, highlighting the challenge of varying text search functionalities across different databases like MySQL, NoSQL, MongoDB, and Couchbase. It discusses the need for applications to use the best text search features available, noting that while simple searches can be efficiently handled by B-Tree indexes, more complex searches require advanced methods like inverted indexes. The text compares MongoDB's B-Tree based text search, which is limited in functionality and performance, with Couchbase's more comprehensive Full-Text Search (FTS) powered by Bleve, which offers extensive capabilities for natural-language querying and supports a wider range of data types and query options. This comparison is illustrated through examples and performance metrics, emphasizing Couchbase's superior efficiency and flexibility in handling complex search queries.
Dec 21, 2018
2,243 words in the original blog post.
The blog post explores the process of converting a callback-based listener API to a reactive one using RxJava 2, particularly in an Android context. The author shares their initial experiences with RxJava, highlighting its simplicity and comprehensibility while acknowledging its reputation for being challenging to learn due to its complex web of interfaces and APIs. The post provides a detailed walkthrough on creating an Observable from a listener interface, using a source that mimics an unbounded event stream and discussing the use of the Observable.create method. The author also touches upon the intricacies of RxJava, such as the role of ObservableOnSubscribe and ObservableEmitter, and hints at the potential for asynchronous operations, which they plan to explore in future writings. The article emphasizes the learning journey and encourages further exploration of RxJava's capabilities, while also offering resources for Couchbase, the database used in the example, and inviting interaction through various platforms.
Dec 20, 2018
1,633 words in the original blog post.
In the realm of data management, backup and recovery are crucial to prevent data loss, with Couchbase offering a comprehensive suite of solutions to meet these needs. Couchbase provides a native backup and recovery tool called cbbackupmgr, available in the enterprise edition, which supports complete, incremental, and merge backups, offering flexibility with cluster-wide or specific bucket backups. The tool also includes robust features such as compression, SSL, and RBAC. Additionally, Couchbase's cross data center replication (XDCR) technology is utilized for disaster recovery, enabling data consistency across sites and supporting business continuity plans. To address the demand for advanced capabilities, Couchbase has partnered with Imanis Data, which enhances backup and restore functionalities with features like parallel scale-out backup, support for object stores, and compliance-facilitating data masking. Customers can choose from these solutions or a combination to achieve their data protection objectives, ensuring their Couchbase data platform is secure and resilient.
Dec 19, 2018
662 words in the original blog post.
The vulnerability affects all versions of Kubernetes greater than 1.0.0 and RedHat OpenShift platform versions greater than 3.0.0, allowing users to escalate their privileges to that of a Kubernetes cluster administrator by exploiting an error in the reverse-proxy when an error occurs with the remote exec command. This can lead to access to secrets and data volumes mounted in containers, even if the container is running with elevated (root) privileges. The best method to prevent all vulnerabilities is to upgrade the Kubernetes cluster to a version that has the vulnerability patched, starting from Kubernetes 1.10.11, 1.11.5, and 1.12.3. The Couchbase Autonomous Operator can be affected by this vulnerability, but not the operator itself, and upgrading to a patched version of Kubernetes is recommended. Upgrading the Kubernetes cluster requires careful consideration to maintain data integrity of the Couchbase data platform, particularly for stateful services like Couchbase server, where evicting a pod can lead to data loss if not done correctly. The Autonomous Operator can mitigate this risk by using pod anti-affinity and persistent volumes, and future versions will feature enhancements to reduce disruption during failover.
Dec 15, 2018
1,413 words in the original blog post.
Couchbase v6.5 introduces the integration of Full-Text Search (FTS) with the N1QL query construct, enabling developers to leverage FTS indexes directly within N1QL queries, combining exact predicate matching with powerful search capabilities. This integration addresses common query performance challenges faced by application developers by allowing both the Query and Index services to be scaled independently, resulting in enhanced performance. Couchbase's adaptive indexing and FTS offer solutions for handling unpredictable query predicates and non-exact search patterns, such as wildcard matching and searching within child object arrays, which are limitations in traditional relational databases. The integration allows for efficient retrieval of complex query patterns, such as those encountered in customer activity management scenarios, where queries may involve multiple fields, arrays, and require rapid response times. The use of FTS indexes in N1QL queries provides a flexible and efficient approach to query performance optimization, particularly suited for cases involving multiple fields and arrays.
Dec 11, 2018
1,421 words in the original blog post.
The Couchbase Kubernetes testing team has successfully certified the Autonomous Operator (AO) on Azure Kubernetes Service (AKS), a cloud-provided Kubernetes service. The team had to overcome several platform-specific challenges, including setting up XDCR-ready AKS clusters with proper network configuration, enabling dynamic persistent volumes, and accessing CB pods in AKS. To resolve these issues, they created custom network configurations, storage classes, and Kubernetes API access methods. With the AO certified on AKS, the team can now run their automated test framework using AKS clusters, paving the way for future certification of other cloud-provided Kubernetes services.
Dec 11, 2018
1,941 words in the original blog post.
Nobel Prize datasets contain information on laureates, countries, and prizes. The dataset has three main files: Laureates, Country, and Prize. The task involves analyzing the data to find answers such as how many have won more than one Nobel prize, which country has produced the highest number of Nobel winners, and the categories in which Indian winners have received their prizes. The analysis reveals interesting results, including famous UK winners born in India and a couple of winners who weren’t born but died in India. Additionally, it shows the top 7 countries to win Nobel Prizes with categorization.
Dec 09, 2018
1,433 words in the original blog post.
The text discusses using Couchbase and SQL to analyze a public dataset on leading causes of death in the United States. The dataset is downloaded into a local file, uploaded to a Couchbase cluster, and then imported into a bucket called "cause". A common table expression (CTE) is used to transform the complex JSON data into flat JSON. Two queries are provided to find the top cause of death for each state by year and to determine how the top reason has changed over time by state. The first query groups the data by state, year, and cause name, while the second query groups the data by state, year, and cause name, and uses window functions to rank the causes. The results are then visualized using a histogram.
Dec 07, 2018
1,042 words in the original blog post.
XDCR, or Cross Data Center Replication, is a high-performance replication technology used in Couchbase to replicate data between clusters, enhancing distributed systems with improved performance, high availability, and fault tolerance. XDCR operates asynchronously, maintaining data consistency across clusters through eventual consistency, and is characterized by its low latency, independent scalability, infrastructure agnosticism, and topology awareness. It features a simplified setup, flexible topologies, resilience to network failures, and optimizations for bandwidth conservation via compression and network throttling. XDCR leverages Couchbase's Database Change Protocol (DCP) for efficient data state communication, supporting both pessimistic and optimistic replication modes. Additionally, XDCR can resume replication from checkpoints after interruptions and is designed to function smoothly without centralized coordination, allowing for decentralized replication and high throughput. Concerns about duplicate replication in hub-and-spoke models are mitigated by DCP, which ensures efficient and optimal data propagation.
Dec 01, 2018
1,094 words in the original blog post.
The text provides a comprehensive guide on using N1QL (SQL for JSON) to analyze JSON datasets, specifically using US Open golf scores as a case study. It highlights the efficiency of N1QL in extracting insights from JSON data compared to traditional methods like writing Python scripts. The article demonstrates the application of upcoming features such as Common Table Expressions (CTE) and Window Functions in Couchbase’s Mad-Hatter release to create a leaderboard, rank players, and determine tournament winners. Through detailed steps, it showcases how to ingest data into Couchbase, generate reports, and use advanced querying techniques to analyze player performances round by round, culminating in producing a full scorecard for the tournament winner, Brooks Koepka. The guide also emphasizes the use of GitHub repositories for source data and queries, providing a practical resource for readers interested in replicating the analysis.
Dec 01, 2018
2,422 words in the original blog post.