Replies: 1 comment
-
Thanks for bringing this up. This seems like a good feature to add to Sequel. I've added it to my to-do list. If someone wants to work on it, that may speed things up. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In Postgres (and maybe other DBMSs - I'm not sure), it's possible for a simple migration to create big problems due to lock pileups. A way to prevent this from causing production incidents is to use
lock_timeout
. This article describes the problem and solution in detail.It's simple enough to add this command to individual migrations. It would be nice if we could have it added to every migration by default though, so we don't have to remember to add it. At the same time, we would like to have a way to override it in certain cases - either within a certain migration or via an option to
Migrator.run
.Basically, I'm looking for the equivalent of this plugin for ActiveRecord.
I found this discussion, but I believe that will only work for setting the
statement_timeout
. Thelock_timeout
can only be set after the transaction is opened.Beta Was this translation helpful? Give feedback.
All reactions