23 Jun '13, 9am

Rails Quick Tips - Random Records #ruby #protip via @coderwall

Hey folks, I'm the author of randumb and can speak a little to this topic. @natebird may have read that 'scales better' on one of the earlier versions of my README. I initially wrote randumb using the 2 query method (select ids, shuffle in ruby, then select records), I tested a number of scenarios with my data set and declared it to be faster and wrote that on my gem's description. However, eventually someone pointed out to me that you have to load every ID into memory in order to do this, which could potentially crash your app if your dataset is large enough, which is way worse than a slow query in my opinion. I decided to revisit my approach. I had barely looked at 'order by RAND()' initially since every blog post ever seemed to suggest avoiding it, so I did some benchmarking comparing the two methods. I wish I still had the hard numbers on hand to share, but in a nutshe...

Full article: https://coderwall.com/p/i34iza

Tweets

#UK [contract] Ruby on Rails Developer at ✔ #jobs

contractjob.net 23 Jun '13, 9am

Ruby on Rails Developer - Cheshunt - 3 months rolling contract/long term - £350 per day One of the country's leading brand...

Resources to learn or keep up to date with Ruby...

jipiboily.com 24 Jun '13, 1am

They provide courses online, some free bust most are not. Still, this is an awesome set of learning resources. You can get...

New Job Alert: Ruby on Rails Developer at Digit...

rorjobs.com 24 Jun '13, 2am

At DigitalOcean we are building a cloud provider that focuses specifically on developers. We are an IaaS and run all of ou...

Secure your Ruby on Rails from vulnerable Ruby gems

Secure your Ruby on Rails from vulnerable Ruby ...

rubyaudit.com 22 Jun '13, 2pm

Are Old Ruby Gems Opening Security Holes In Your Applications? Do you know if any of the Ruby gems used by your applicatio...

Read my new post: Beauty Tips for the Masked Raiders

Read my new post: Beauty Tips for the Masked Ra...

renzze.com 24 Jun '13, 3pm

I had eyelash extensions then and I couldn’t use mascara at all. But Panasonic Eyelash Curler could be used on my eyelash ...

Blog post, Shadowrun and #bitcoin's roots:

garzikrants.blogspot.com 22 Jun '13, 10pm

, mailing list and forum discussions list bitcoin's ancestors as ecash , hashcash , b-money and the cypherpunk movement . ...

Clean Rails Install on OS X Mountain Lion: Homebrew + RVM + Ruby 1.9.3 + Git + MySQL #ruby #protip vi…

Clean Rails Install on OS X Mountain Lion: Home...

coderwall.com 22 Jun '13, 5pm

$ ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)" $ brew install automake 3. RVM $ \curl -L https://get.rvm.io | ...