ruby: All content tagged as ruby in NoSQL databases and polyglot persistence
Wednesday, 8 February 2012
Redis Pipelining Explained with Ruby Code
Albert Callarisa Roca demoes pipelining in Redis using some basic Ruby code. Remember that saving round trips equals reduced latency => happier users.
Original title and link: Redis Pipelining Explained with Ruby Code (©myNoSQL)
via: http://acroca.com/blog/2012/02/04/redis-pipelined-queries/
Fulltext search your CouchDB in Ruby
When having to choose what library to use for full text indexing of CouchDB data for a Ruby application, Taylor Luk looked at from Sphinx, Lucene, Ferret, Xapian and decided to go with Xapian with Xapit . Besides the fact that Xapian with Xapit offers a clean interface and customization of the indexing process, there seem to be quite a few important limitations:
- Xapit is still under active development
- You need to trigger Index update manually
- It doesn’t Incremental index update at the moment
I know some are afraid of managing a Java stack, but in the land of indexing, Lucene, Solr, ElasticSearch, IndexTank are the most powerful tools.
Original title and link: Fulltext search your CouchDB in Ruby (©myNoSQL)
via: http://taylorluk.com/post/17255656638/fulltext-search-your-couchdb-in-ruby
Wednesday, 1 February 2012
Neo4j on Heroku: Building a Movie Recommendation Website for $0.00
Recently Max de Marzi has published sort of a getting started with Neo4j on Heroku guide. Here is how Max described it:
It takes a lot less effort to build a website these days than it used to. All it takes is a clever dwarf standing on the shoulders of the right giants. In a series of blog posts, I walk you through creating a movie recommendation website using Neo4j, Heroku, themoviedb.org, Processing.js, GroupLens, Marko Rodriguez and Michael Aufreiter. Free database, free hosting, free movie posters, free visualization, free dataset, free recommendation algorithm, just need to add a little code to bring them all together and BYOP (bring your own popcorn).
This will not get you a Netflix or Amazon like recommendation engine, but using a similar approach could definitely tell if Muhammad Ali is truly the greatest.
Original title and link: Neo4j on Heroku: Building a Movie Recommendation Website for $0.00 (©myNoSQL)
Wednesday, 11 January 2012
Friend Recommendations Using Gremlin With Neography
Max De Marzi:
Gremlin is a domain specific language for traversing property graphs. Neo4j is one of the databases that can speak the gremlin language, and as promised I’ll show you how you can use it to implement friend recommendations as well as degrees of separation.
Original title and link: Friend Recommendations Using Gremlin With Neography (©myNoSQL)
via: http://maxdemarzi.com/2012/01/06/gremlin-with-neography/
Thursday, 5 January 2012
Getting Started With Ruby and Neo4j Using Neography
Getting started with Ruby and Neo4j is very easy. Follow these steps and you’ll be up and running in no time.First we install the neography […]
The traversal API looks really nice and comes in two flavors: the Neo4j REST API and a Ruby-esque one.
Original title and link: Getting Started With Ruby and Neo4j Using Neography (©myNoSQL)
via: http://maxdemarzi.com/2012/01/04/getting-started-with-ruby-and-neo4j/
Sunday, 11 December 2011
NoSQL Screencasts: Neo4j for Ruby and Java People, Plus Data Modeling and Querying
Before the weekend is over, you could spend a bit of time experimenting with Neo4j. If you are a Ruby person then you’ve probably learned from the persistent graph structures with Ruby/Rails thread that Neo4j with JRuby is the way to go. In the first video Peter Neubauer demonstrates the process of building and deploying a Neo4j-enabled application on Heroku:
Saturday, 10 December 2011
Riak: Past and Future
Justin Sheehy talking about the origins of Riak and Dave Smith about its future at Riak 1.0 party. A nice piece of the recent history.
Friday, 9 December 2011
Persistent Graph Structures With Ruby/Rails
Summarizing this long thread trying to answer the question in the title: Neo4j + JRuby.
Original title and link: Persistent Graph Structures With Ruby/Rails (©myNoSQL)
Wednesday, 7 December 2011
Hadoop/MapReduce on Cassandra Using Ruby and REST
Brian O’Neill:
In an effort to make Hadoop/MapReduce on Cassandra more accessible, we added a REST layer to Virgil that allows you to run map reduce jobs written in Ruby against column families in Cassandra by simply posting the ruby script to a URL. This greatly reduces the skill set required to write and deploy the jobs, and allows users to rapidly develop analytics for data store in Cassandra.
Smart: 10. Security: ?. Utility: 10.
Original title and link: Hadoop/MapReduce on Cassandra Using Ruby and REST (©myNoSQL)
via: http://brianoneill.blogspot.com/2011/12/hadoopmapreduce-on-cassandra-using-ruby.html
Booting the Analytics Application
Russell Jurney describes the lifecycle of data/events in an analytic application:
EVENTS -> RUBY -> AVRO -> PIG -> VOLDEMORT -> SINATRA -> WEB BROWSER -> USER
The first step to building analytics applications with Hadoop is to plumb your application from end to end: from collecting raw data to displaying something on the users’ screen. This is important, because models can get complex fast, and you need user feedback plugged into the equation from the start.
Original title and link: Booting the Analytics Application (©myNoSQL)
via: http://datasyndrome.com/post/13707537045/booting-the-analytics-application-events-ruby
Parallelizing Work: From Single-Thread to Redis
An old post from Santosh Kumar describes the sequence of steps to parallelize processing from single threaded apps to using Redis and Resque and going through forking and process pools. Santosh has written extensively about using Redis for concurrency or as a Message oriented middleware (MOM).
The next time you need to get some background job action going, stop yourself from just grabbing a library. Instead, toy around with redis lists a little. You’ll be surprised by how much you can accomplish with just straight redis primitives.
While I agree with the usefulness of Redis[1], none of his posts say what comes after it. And that’s specialized solutions.
-
Last weekend I’ve built a tool for myself using Redis. ↩
Original title and link: Parallelizing Work: From Single-Thread to Redis (©myNoSQL)
via: http://santosh-log.heroku.com/2011/07/24/parallelizing-work-with-redis/
Saturday, 3 December 2011
Couchbase 2.0 Ruby Client Screencast
A screencast demoing CRUD capabilities of the Couchbase 2.0 using the Ruby library.
Most Popular Articles
- Translate SQL to MongoDB MapReduce
- Tutorial: Getting Started With Cassandra
- CouchDB vs MongoDB: An attempt for a More Informed Comparison
- Cassandra @ Twitter: An Interview with Ryan King
- A Couple of Nice GUI Tools for MongoDB
- NoSQL benchmarks and performance evaluations
- Ehcache: Distributed Cache or NoSQL Store?
- Document Databases Compared: CouchDB, MongoDB, RavenDB
- Quick Review of Existing Graph Databases
- NoSQL Data Modeling