Category: Ruby

Hello World with Couchbase and Ruby

Hello World with Couchbase and Ruby

For those of you who might have seen my other blog, my goal is to convey the fact that using Couchbase with any of the language client libraries is very straightforward. The client libraries handle the complexity of the connection...

Multiple Bucket Connections in Couchbase and Ruby

Multiple Bucket Connections in Couchbase and Ruby

c = Couchbase.new(“http://localhost:8091/pools/default/buckets/my-bucket”) I believe it’s safe to say we are mostly all familiar with the above Ruby code.  It establishes a connection from the Ruby SDK to a bucket of our choosing inside our Couchbase cluster.  There are, of...

The Couchbase Team December 16, 2014
Ruby on Rails and Couchbase-Model for a Social Application!

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...

The Couchbase Team December 16, 2014
Understanding group_level in View Queries with Compound Keys

Understanding group_level in View Queries with Compound Keys

Querying Views is what views are all about. Our documentation is great and can be found here: http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-views.html Compound Keys Just to illustrate how group level works, let’s use a Map function that sorts users by the latest login timestamp, converting...

The Couchbase Team December 16, 2014
Understanding Letter Ordering in View Queries

Understanding Letter Ordering in View Queries

Map/Reduce Views are an important part of Couchbase 2.0 and understanding how to query them is also important. Our documentation is great and can be found here: http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-views.html One of the subtleties is understanding Unicode Collation ordering of letters which is...

The Couchbase Team December 16, 2014
Using Couchbase Ruby Gem with EventMachine

Using Couchbase Ruby Gem with EventMachine

As you may have noticed the new couchbase ruby gem has been released recently. The release 1.2.2 is mostly a maintenance release with several bug fixes, but yet you can try one new experimental feature: integration with EventMachine library. This...

10 Things Developers Should Know about Couchbase

10 Things Developers Should Know about Couchbase

As a developer, I’ve been using Couchbase Server for couple of months now and I love it. Having written several apps myself, I’ve come to learn many (but not all) of the ins-and-outs of Couchbase. To be a good Couchbase...