Tugdual Grall's blog

November 18, 2013

November 18: The Week in Couchbase NoSQL

This week's featured content, events, webinars and more - all in The Week in Couchbase NoSQL.

Read more »

October 28, 2013

October 28: The Week in Couchbase NoSQL

This week's featured content, events, webinars and more - all in The Week in Couchbase NoSQL.

FEATURED CONTENT

Read more »

October 1, 2013

Pagination with Couchbase

[This blog was syndicated from http://blog.grallandco.com]

 

If you have to deal with a large number of documents when doing queries against a Couchbase cluster it is important to use pagination to get rows by page. You can find some information in the documentation in the chapter "Pagination", but I want to go in more details and sample code in this article.
 

For this example I will start by creating a simple view based on the beer-sample dataset, the view is used to find brewery by country:

function (doc, meta) {
  if (doc.type == "brewery" && doc.country){
   emit(doc.country);
  }
}


 

This view list all the breweries by country, the index looks like:

Doc id Key Value
bersaglier Argentina null
cervecera_jerome Argentina null
brouwerij_nacional_balashi Aruba null
australian_brewing_corporation Australia null
carlton_and_united_breweries Australia null
coopers_brewery Australia null
foster_s_australia_ltd Australia null
gold_coast_brewery Australia null
lion_nathan_australia_hunter_street Australia null
little_creatures_brewery Australia null
malt_shovel_brewery Australia null
matilda_bay_brewing Australia null
... ... ...
... ... ...
... ... ...
yellowstone_valley_brewing United States null
yuengling_son_brewing United States null
zea_rotisserie_and_brewery United States null
fosters_tien_gang Viet Nam null
hue_brewery Viet Nam null

So now you want to navigate in this index with a page size of 5 rows.

Read more »

July 21, 2013

How to : Implement Document Versioning with Couchbase

[This blog was syndicated from http://blog.grallandco.com]

Introduction

Developers are often asking me how to "version" documents with Couchbase 2.0. The short answer is: the clients and server do not expose such feature, but it is quite easy to implement.
 
In this article I will use a basic approach, and you will be able to extend it depending of your business requirements. 
 

Read more »

July 8, 2013

SQL to NoSQL : Copy your data from MySQL to Couchbase

[This blog was syndicated from http://blog.grallandco.com]

 

Introduction

 
During my last interactions with the Couchbase community, I had the question how can I easily import my data from my current database into Couchbase. And my answer was always the same:
  • Take an ETL such as Talend to do it
  • Just write a small program to copy the data from your RDBMS to Couchbase...
So I have written this small program that allows you to import the content of a RDBMS into Couchbase. This tools could be used as it is, or you can look at the code to adapt it to your application.
 

 

 

Read more »

June 3, 2013

Create a Couchbase cluster in less than a minute with Ansible

[This blog was syndicated from http://blog.grallandco.com]

 

Introduction

 
When I was looking for a more effective way to create my cluster I asked some sysadmins which tools I should use to do it. The answer I got during OSDC was not Puppet, nor Chef, but was Ansible.
 
This article shows you how you can easily configure and create a Couchbase cluster deployed and many linux boxes...and the only thing you need on these boxes is an SSH Server!
 
Thanks to Jan-Piet Mens that was one of the person that convinced me to use Ansible and answered questions I had about Ansible.
 
You can watch the demonstration below, and/or look at all the details in the next paragraph.
 
 
 

Read more »

May 29, 2013

Six months as Technical Evangelist at Couchbase

[This blog was syndicated from http://blog.grallandco.com]

Already 6 months! Already 6 months that I have joined Couchbase as Technical Evangelist. This is a good opportunity to take some time to look back.

 

So first of all what is a Developer/Technical Evangelist?

 

Hmm it depends of each company/product, but let me tell you what it is for me, inside Couchbase. This is one of the most exciting job I ever had. And I think it is the best job you can have when you are passionate about technology, and you like to share this passion with others. So my role as Technical Evangelist is to help the developers to adopt NoSQL technologies in general, and as you can guess Couchbase in particular.

Let's now see in more details what I have done during these past six months and why I am so happy about it. I have organized the different activities in three types:

  • Outbound activities : meet the developers
  • Online activities : reach even more developers
  • Inbound Activities : make the product better !

Read more »