Postgres Pain Points 2 ruby / node language drivers - Mailing list pgsql-general

From support-tiger
Subject Postgres Pain Points 2 ruby / node language drivers
Date
Msg-id c8089aaa-c946-7f76-6c52-57410ada125a@tigernassau.com
Whole thread Raw
Responses Re: Postgres Pain Points 2 ruby / node language drivers  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: Postgres Pain Points 2 ruby / node language drivers  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Re: Postgres Pain Points 2 ruby / node language drivers  (Andreas Joseph Krogh <andreas@visena.com>)
List pgsql-general
A database is only as good as the ability to use it.  Using ORM's with
Postgres seems dumb, like having a Ferrari but only allowed to drive 25
kmh. Really, for getting data in and out with Postgres, SQL is pretty
simple. The ORM abstractions take as much effort as simply writing
direct SQL statements and convenience functions with straight sql.
Ruby:  The "pg" driver seems to be tweaked to work okay with active
record, and maybe Sequel, but we are having problems with with straight
ruby/sinatra.  (see comments above re ORM's).   Since we changed to
Fedora and Ruby 2.3, we are now having breaking connections and JSONB
query problems.  This could be from lack of clear docs and examples - we
cant' find any good examples or tutorials with JSONB. It seems with this
driver it is Rails or the highway.

Nodejs:  The docs and tutorials for "node-postgres" are a mess.  The
github readme, examples, and wikis are all different.  Then there is
"native" and "pooling" and prepared statement alternatives. Callback
hell is bad enough, then to have lots of different approaches.
Async/Await should help this issue (whenever it arrives in Node) but
meanwhile, it's a painful struggle.  Whatever examples exist are for
such trivial use, they fall short of helping with real-life examples,
like sequential results.

Python:  The Postgres team supported driver psycopg2 seems to work great
(but we really don't want to rewrite lots of code into python

It would be great if the Ruby and Node drivers can be brought under the
Postgres team umbrella and make them as reliable and clearly documented
as the Python or jdbc drivers.


--
Support Dept
Tiger Nassau, Inc.
www.tigernassau.com
406-624-9310




pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Postgres Pain Points: 1 pg_hba conf
Next
From: Artur Zakirov
Date:
Subject: Re: Updated RUM-index and support for bigint as part of index