You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to merb
Hi,
I've spent today quite a bit of time to figure out why pg gem doesn't
work with Merb and Sequel and why the hell Merb ends in loop and eats
100% CPU.
The bad is that I didn't find a solution to the problem.
The problem seems to be somewhere during Merb reloads model classes
which triggers Sequel to query DB for schema information. After the
first query to the database connection is lost and not removed from
the Sequel connection pool which raise
Sequel::DatabaseDisconnectError.
This happen in both drivers (postgres or pg). But in pg you end in
infinite loop issuing huge amount of syscalls.
I tried to disconnect and cleanup the Sequel connection pool, but it
doesn't have any effect. I tried on MacOS and Ubuntu with the same bad
results. I also tried to reproduce problem in Sinatra but without
succes, everything worked.
Anyody ideas????
For now I'll add warning mesage to merb_sequel saying to gem uninstall
pg or give up reloading and just use manual restarts. You have to
uninstall the gem because sequel loads it and bundling doesn't help.
I'll post to the ruby-pg as well.
Pavel
Pavel Kunc
unread,
Mar 3, 2009, 6:52:59 AM3/3/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message