DEV Community

Discussion on: How to deal with ActiveRecord::StatementInvalid PG::QueryCanceled?

Collapse
 
ben profile image
Ben Halpern

I think that's the right thought, but on that note I think decreasing the timeout value is probably more likely to be helpful I think in the macro. This seems to be a symptom of resource over-utilization where quitting early in order to avoid locking things up is probably the right course of action.

Anyway, that's where my head goes.