Skip to content

Conversation

@chaadow
Copy link

@chaadow chaadow commented Dec 31, 2025

example, Rails uses instance_variable_get to get access to the underlying Pg gem adapter object, to do some low level manipulation: cf. https://github.com/rails/rails/blob/aa1bee96f565b2f894e4b9eef434990ecfaaa833/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb#L340

in batch calls such as destroy_all or update_all, the entire transaction sometimes gets rolled back, or sometimes we get this weird behavior where out of 5000 rows, 2 get deleted, but not the remaining 4998

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant