rom-rails icon indicating copy to clipboard operation
rom-rails copied to clipboard

ROM-SQL Connection remains on development

Open alex-lairan opened this issue 3 years ago • 0 comments

Describe the bug

ROM keep previous connections when rails reload the codebase. Due to this behavior, after some changes you get a

PG::ConnectionBad: FATAL:  remaining connection slots are reserved for non-replication superuser connections

To Reproduce

A Rails app with ROM and ROM-SQL.

Change multiple times the codebase with the Rails server started.

Expected behavior

After each reload, ROM should clear his connections.

Your environment

  • Affects my production application: NO
  • Ruby version: 2.6.6
  • OS: All

alex-lairan avatar Jan 15 '21 14:01 alex-lairan