Home / Companies / Couchbase / Blog / July 2013

July 2013 Summaries

2 posts from Couchbase

Filter
Month: Year:
Post Summaries Back to Blog
The text discusses implementing version control for documents in a Couchbase database, allowing existing applications to access and manipulate multiple versions of a document without impacting the core code. A simple yet effective approach is proposed, where new versions are created by copying existing documents with incremented version numbers, and views need to be updated to only return current versions. The implementation involves creating a `CouchbaseClientWithVersioning` class that extends the standard Couchbase client, allowing users to set, get, and delete specific versions of a document, as well as access all available versions. This approach can provide version control with minimal code changes, making it suitable for various use cases, including JSON documents and other values. However, it also introduces additional database operations and management considerations.
Jul 21, 2013 904 words in the original blog post.
The Couchbase SQL Importer is a Java-based command line tool designed to facilitate the transfer of data from relational databases (RDBMS) to Couchbase by converting SQL table rows into JSON documents and importing them into Couchbase. Each table row is transformed into a JSON document where table columns become JSON attributes, and documents are assigned keys based on the table name and a counter. The tool creates views to enable queries for imported documents by type or primary key, allowing users to efficiently navigate and manage data within Couchbase. To utilize the tool, users must download the necessary jar files, configure a properties file for database connections and import options, and execute the tool through a specified Java command. The tool serves as a foundational step for experimenting with data in Couchbase, with the possibility of further customization or enhancement to suit specific application needs.
Jul 08, 2013 1,250 words in the original blog post.