ActiveRecordActiveRecord, Ruby, PostgreSQL and Threads
As I talked about before in a previous post, Ruby, ActiveRecord does threading, all you need is:
ActiveRecord::Base.allow_concurrency = true |
Now I was doing some programming on another project, and as I used that hard-to-find feature, and did an SQL query, it totally broke. After some googling (not as much as with my previous problem) I found out my ruby-to-postgres gem was to blame. Because allthought ActiveRecord does speak Threading/Concurrency, postgres-pr does not
I repeat: postgres-pr does NOT support threading
So I installed the other PostgreSQL solution for ruby: ruby-postgres, and guess what: works like a charm..
So remember: Cool Kids use ruby-postgres