RoR: All content tagged as RoR in NoSQL databases and polyglot persistence
Thursday, 3 January 2013
Improvements in Rails 4 ActiveRecord for PostgreSQL
Kevin Faustino:
Out of all the supported databases available in Active Record, PostgreSQL received the most amount of attention during the development of Rails 4. In today’s countdown post, we are going to look at the various additions made to the PostgreSQL database adapter.
Teaser:
- hstore and hstore indexes support
- arrays
- uuid
- network address data types
- int4range, int8range
- json
Original title and link: Improvements in Rails 4 ActiveRecord for PostgreSQL (©myNoSQL)
via: http://blog.remarkablelabs.com/2012/12/a-love-affair-with-postgresql-rails-4-countdown-to-2013
Thursday, 24 March 2011
Using Redis with Ruby on Rails
TL;DR: Redis is fucking awesome.
Title and quote says it all. Added to the getting started with NoSQL guides.
Original title and link: Using Redis with Ruby on Rails (NoSQL databases © myNoSQL)
via: http://jimneath.org/2011/03/24/using-redis-with-ruby-on-rails.html
Friday, 4 March 2011
Ruby On Rails: Cron Job Scheduling using Redis, Resque, and Rufus
The 5 R: Ruby on Rails, Redis, Resque, Rufus.
Now the question is what’s the best way to run scheduled tasks in a Rails environment? Generally, Rails developers can use an application specific crontab to run application tasks. […] Downsides of Cron are:
- Cron works well on a single server but what if you need to scale to multiple app servers? You’ll need to introduce some kind of lock to avoid concurrency problems. Also, you need to maintain these shared locks.
- The other problem with Cron is that they are difficult to debug.
- Cron is for scheduling things, not doing them.
This can almost always be better to place jobs in queue and place the worker system to perform or to execute those jobs. Luckily there is a very good gem named ‘resque‘ available in Ruby on Rails.
Original title and link: Ruby On Rails: Cron Job Scheduling using Redis, Resque, and Rufus (NoSQL databases © myNoSQL)
via: http://hemju.com/2011/03/04/rails-cron-job-scheduling-using-redis-resque-and-rufus/
Tuesday, 9 November 2010
Ruby, Rails, and NoSQL: Cassandra, CouchDB, MongoDB
List of gems and brief installation notes and examples for using Cassandra, CouchDB, and MongoDB from Ruby on Rails:
In order to do so, we will review the following NoSQL databases: Cassandra, MongoDB and CouchDB. Ruby supports each one of them over corresponding gems. In this blog post we will be using Ruby 1.8.7 with Rails 3.0 under Ubuntu 9.10 OS.
Original title and link: Ruby, Rails, and NoSQL: Cassandra, CouchDB, MongoDB (NoSQL databases © myNoSQL)