Tag: goliath

使用postgresql gem async

我正在使用Goliath (由eventmachine驱动)和postgres gem pg ,目前我正以阻塞的方式使用pg gem: conn.exec(‘SELECT * FROM products’) (例如)和我想知道是否有更好的方式连接到postgres数据库?