From: Chad Perrin Date: 2011-08-01T05:06:27+09:00 Subject: Re: How to connect to and use Postgresql from Ruby --VS++wcV0S1rZb1Fb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 01, 2011 at 04:32:24AM +0900, Roy Zuo wrote: > > I would personally recommend Sequel, even for performance. Although > ruby-pg is more low level, it is very hard to fine tune every > transaction. Sequel by default does a lot of caching in memory and > comes with builtin database connection pool. These can save great > effort reimplementing by yourself and also boost you application > performance. Not to mention Sequel also has got a memchached plugin > already just in case you want it. Using Postgres with Sequel, you still > have access to bind variable and prepared statement functionality > coming from ruby-pg, which can be fine tuned to further improve > performance. >=20 > Aside from performance, using high level library like Sequel makes your > application more portable and more readable. That was much more articulate than the answer I was thinking about, but essentially similar in principle. Thanks. --=20 Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] --VS++wcV0S1rZb1Fb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAk41saoACgkQ9mn/Pj01uKXaTwCfYpnN4Yt/c5gsJcBAJM8nJeD3 uuMAnRkKjaw2zVe/E24SrhBjpZ3zxSsd =R7I3 -----END PGP SIGNATURE----- --VS++wcV0S1rZb1Fb--