Tugdual Grall
A blog of technologies I am working on and interested in..NoSQL, Couchbase, Web Services, Java, Mac and more...Tugdual Grallhttps://plus.google.com/103667961621022786141noreply@blogger.comBlogger220125
Updated: 8 hours 38 min ago
Screencast : Fun with Couchbase, MapReduce and Twitter
I have created this simple screencast to show how you can, using Couchbase do some realtime analysis based on Twitter feed.
The key steps of this demonstration are
Inject Tweets using a simple program available on my Github Couchbase-Twitter-Injector
Create views to index and query the Tweets by
User name
Tags
Date
The views that I used in this demonstration are available at the bottom of Tugdual Grallhttps://plus.google.com/103667961621022786141noreply@blogger.com0
Easy application development with Couchbase, Angular and Node
A friend of mine wants to build a simple system to capture ideas, and votes. Even if you can find many online services to do that, I think it is a good opportunity to show how easy it is to develop new application using a Couchbase and Node.js.
So how to start?
Some of us will start with the UI, other with the data, in this example I am starting with the model. The basics steps are :
Tugdual Grallhttps://plus.google.com/103667961621022786141noreply@blogger.com0
How to get the latest document by date/time field?
I read this question on Twitter, let me answer the question in this short article.
First of all you need to be sure your documents have an attribute that contains a date ;), something like :
To get the "latest hired employee" you need to create a view, and emit the hire date as key. The important part is to check that this date is emitted in a format that is sorted properly, for example an Tugdual Grallhttps://plus.google.com/103667961621022786141noreply@blogger.com2
Introduction to Collated Views with Couchbase 2.0
Most of the applications have to deal with "master/detail" type of data:
breweries and beer
department and employees
invoices and itemsÂ
...
This is necessary for example to create application view like the following:
With Couchbase, and many of the document oriented databases you have different ways to deal with this, you can:
Create a single document for each master and embed all the Tugdual Grallhttps://plus.google.com/103667961621022786141noreply@blogger.com0


