Hassle free installation of rails stack on debian based system

Published on

Want to install rails stack on a machine? Just follow these steps. It will setup a rails stack(Apache + passenger + mysql + ruby + rubygems + common gems + git) on any server(debian based) apt-get update apt-get upgrade -y apt-get -y install build-essential libssl-dev libreadline5-dev zlib1g-dev apt-get -y install mysql-server libmysqlclient15-dev mysql-client apt-get -y … Continue reading Hassle free installation of rails stack on debian based system

Edge rails: ActiveRecord::Base.each and ActiveRecord::Base.find_in_batches for batch processing

Published on

You guys must faced a situation when you need to process large number of records, for example sending newsletters. Then you must have done some sort of batch processing to save it eating up all of your memory. This feature is committed to rails core by DHH. Now you can do something like User.each and … Continue reading Edge rails: ActiveRecord::Base.each and ActiveRecord::Base.find_in_batches for batch processing