impressionist
impressionist copied to clipboard
impressionist in background
I have a general question about the impressionist gem: Is there any performance gain to use a background queue (e.g. delayed_job) to process the calls?
Let's say i have 40 impressionst(object) calls in my controller. Would it be better to delay all of them in a background method?
Thanks in advance for you answer!
the same problem...
Same problem. Is it possible to use delayed_job and how ? Thank you.
If you really wanted to, I think it would be fairly easy to override the impressionist
method, but instead of calling obj.impressions.create
, you would schedule the job... I don't think there's another straightforward solution :(
I'd be nice if the gem had extracted obj.impressions.create(associative_create_statement...)
into a method.
That would be a very nice feature. I already use resque for background processing in my application, so this would really take a load off the controller and improve response time.
+1
Anyone on this thread figure out a workaround for delayed job? Having similar, equally predictable performance issues.