Hacker News new | past | comments | ask | show | jobs | submit login

It seems like NoSQL could be left behind except for the .001% of use cases that actually require it and can't be easily replaced with extensions or (hopefully) automatable configurations of Postgres, but it would require application-level abstractions, and the database community doesn't value those enough, as evidenced by SQLAlchemy [1] not being highlighted on the homepage of every RDBMS project because of the awesome power and flexibility it gives the developer.

Specifically, a JSON column should be used to store everything other than primary keys and foreign keys, and views and indexes should be automatically created based on the schema defined in the application (i.e., get the schema from the ORM at deploy time and post the data to a schema/migration management system) using something like https://github.com/mwhite/JSONAlchemy

It is entirely possible to implement the CouchDB or MongoDB API on top of Postgres JSON, for instance.

[1] http://www.sqlalchemy.org/




I have been interested in a couchdb api for postgres. But thus far could not find anything.

One option is PouchDB, with levelDOWN* to push it to levelUP* to store it in postgres. But the level of abstraction feels just to much.

I also found another project that basicly keeps a copy in couchdb and sync it over to pg, but stuff like attachments does not work.

* I'm not 100% sure about the projects and how to accomplish it.


>> It is entirely possible to implement the CouchDB or MongoDB API on top of Postgres JSON, for instance.

Sure, but that's just because someone has gone to the trouble of building a Mongo-equivalent as a Postgres module.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: