by meowface · 13y ago · 0 comments
Is that what we're calling this whole 30 lines of javascript, mongo and redis behind the WAN, dynamic language runtime inside the DB era?
Cool.
EDIT: saying that, some kind of featureful document store implementation inside postgres seems inevitable. Isn't that all going to be hstore-based though, what with the new stuff coming in 9.4? I thought the json type was meant to be kind of a stopgap until the full hstore functionality is finished, ie. nesting?
It's worth noticing, that MongoDB index is very "narrow" index, while hstore's indexes could speedup more queries.
====
Well, wow. This is 6-12 months away, and really exciting.
PgREST also comes with a shim JSON type for Postgres version 9.1 and earlier, so the column type implementation is mostly hidden from the user.
A secondary motivation is using two familiar APIs — MongoLab and Firebase — to access existing PostgreSQL databases.
(We're using this in production at Socialtext and g0v.tw.)
Is there really a significant population of developers now to whom these are more familiar query languages than SQL?
Honest question.
We don't generally send SQL over the wire, though. :-)
That is to say, front-end programmers usually work with a middleware (or backend-as-a-service) layer that translates REST/JS API requests into backend storage, and PgREST simply implements this layer with Postgres itself.