If you’ve ever built a sizeable Rails app before, you know that efficient cache use can really supercharge your application. The storEDGE platform has always tried to offer the best performance to our users by keeping our memcached processes on the same instances as our application servers.
I’m pleased to announce that my newest video series, Rapid Lo-Dash is available for purchase through Packt Publishing.
Today, I came across a puzzling issue with Rails 4.1, ActiveRecord, and Postgres when trying to select random records from a database table.
To demonstrate, let's use a simple social network API example. Clients will POST a list of user, and I'll "match" them to someone in my database.
Easy enough, for testing purposes we can just select a random user from our "users" table in postgres to simulate a match.