These are chat archives for ged/ruby-pg

16th
Feb 2018
Samuel Williams
@ioquatix
Feb 16 2018 02:09
I found two issues:
/home/samuel/.rvm/gems/ruby-2.4.0/gems/pg-1.0.0/lib/pg/connection.rb:50:in `parse_connect_args': warning: URI.regexp is obsolete
When I require pg/connection I get /home/samuel/.rvm/gems/ruby-2.4.0/gems/pg-1.0.0/lib/pg.rb:67: warning: loading in progress, circular require considered harmful - /home/samuel/.rvm/gems/ruby-2.4.0/gems/pg-1.0.0/lib/pg/connection.rb
Oh, and the join chat button on bitbucket isn't a link
Samuel Williams
@ioquatix
Feb 16 2018 02:45
Okay, so just for fun, I tried hacking into AR, and it did work pretty well: https://github.com/socketry/async-postgres
Samuel Williams
@ioquatix
Feb 16 2018 02:52
In theory, AR could be a lot more "async" if it could stream results
Samuel Williams
@ioquatix
Feb 16 2018 04:17
Hmm, in my testing, using pg_sleep(10) in an HTTP RPC, I got 5x the throughput