Skip to content

Instantly share code, notes, and snippets.

@seocahill
Last active April 5, 2019 13:58
Show Gist options
  • Save seocahill/75c13c79f236df250250ad664ac0680d to your computer and use it in GitHub Desktop.
Save seocahill/75c13c79f236df250250ad664ac0680d to your computer and use it in GitHub Desktop.
Set timeout in current session
conn_config = ActiveRecord::Base.connection_config
conn_config[:variables]['statement_timeout'] = 60000
ActiveRecord::Base.establish_connection conn_config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment