Couchbase Blog

October 6, 2013

Python SDK and Twisted

I'm working on a Twisted interface to the Couchbase client (https://github.com/couchbase/couchbase-python-client). The link there points to the synchronous interface.

Read more »

October 2, 2013

Game Servers and Couchbase with Node.js - Part 1

It seems these days that almost every game studio has been working on networked games where players can interact and co-operate with their friends and other players around the world. Considering my previous experience building such servers and that Couchbase fits the bill as a backing store for a system like this, I thought perhaps this may be an excellent topic to write about! I will be writing this in multiple parts with each part implementing one specific aspect of the game server, additionally, I will be doing the same tutorial using our PHP client library to show that off as well.

Read more »

October 2, 2013

Python SDK 1.1.0 Released

The Python SDK for Couchbase has just been release with a new version -- 1.1.0. This blog post will go into some of the enhancements that have gone into this release.

The 1.1.0 SDK utilizes a newer version of libcouchbase (2.1.x) with additional features, bugfixes, and performance improvements. Note that it is also possible to use the older 1.0.0 SDK with the newer libcouchbase.

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 »

September 30, 2013

September 30: The Week in Couchbase NoSQL

Here's what's coming up this week at Couchbase.

FEATURED CONTENT

Read more »

September 23, 2013

libcouchbase with C++ and threads (1/2)

I decided to play around a bit last week trying to create a more standard set of C++ bindings for libcouchbase.

Read more »

September 19, 2013

Ruby on Rails and Couchbase-Model for a Social Application!

Also using HAML, SASS, Bootstrap, And Twitter OmniAuth...

Before we start – Here’s the GitHub code for this App…

We recently had our 3rd Couchbase San Francisco conference which, by the way,  was a great success and a fantastic day / night.  At the conference, I gave an 80-minute session based on the very sample application we are going to be building today.  The purpose of my talk was to show how we can model JSON documents within Couchbase and utilise the full Map/Reduce capabilities to build an application end-to-end.

Read more »

September 16, 2013

September 16: The week in Couchbase NoSQL

We had some major announcements last week! Here's what's coming up this week at Couchbase.

FEATURED CONTENT

Read more »

September 13, 2013

Intro and Couchnode 1.0.0

Hey Everyone!
 
My name is Brett Lawson and I am the new Couchbase Node.js SDK developer.  I have worked for Couchbase for about 3 weeks now, but I haven’t had a chance to get a blog out until now.  I have been a regular contributor to the Node.js SDK for over 10 months now.
 
I bring experience with me from the social games industry, wher

Read more »