top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Parallelizing Tasks in the Background when using rails

+1 vote

experimenting with optimizing some areas that involve long processing times on some SQL selects (or any background task, really). This is in Rails 4.0.0 with Ruby 2.0.0p247, PostgreSQL 9.2.4.

In this case, I can do intelligent dividing of selects to even the workload among N processes for the DB backend.

I currently am trying Spawnling, and this works for exactly one hit before I have to restart the web service:
spawns = [] ABC.each do # criteria for selects to divide load spawns

posted Oct 5, 2013 by Anderson

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+1 vote

how to use single login page for users in four models when using Ruby on Rails

+1 vote

Currently I am working on a app, so far I have User (with devise) which are able to create projects. So, if user1 create project A and project B I want him, to be able to assign user2 with role admin on project A, and user2 with moderator admin on project B. I was thinking in creating a UserRoleProject link table, is it a good idea? Also I intend to use CanCan for the authorisation.

0 votes

I have Rails version 2.3.8.I am using Netbeans 6.9.1 as IDE. I want to redirect localhost:3000 to a specific page. I opened routes.rb file and uncommented the line

 map.root :controller => "Welcome"

I created a controller named Welcome and a view named index. I also deleted the default index file as suggested in some of the websites.However, the page is not getting redirected to new index page. What is the problem??

0 votes

I need to upload files in my rails application.the type of the files should be pdf,xls,word.After that i need to download them from the view page.plz help me in this regard.