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

TLDR, just use postgres



This. I used to agonize over which database to use on a project. Now I just use postgres.


And if you want much nicer development tools and a database server that has real stored procedures, just use SQL Server.


Desperately trying to move from sql server to PostgreSQL.


Yeah I know, it’s hard because PG is missing a lot of features that I depend on. Like a profiler. LOL


That’s not the conclusion of this at all...


In most benchmarks Postgres with tabular data got the best results. If you need to store json or do graph queroes and don't want to create indices youself, then consider araango


And even then, should you be storing JSON? Is putting GraphQL into your datastore the right thing?


That depends. If you know that your data contains a highly irregular, non-exhaustive list of extra attributes that have no relations to other parts of the data model, a JSON column might be the right choice. It's rarely the best choice, but I can totally see applications where it is.


I use JSON for data that needs structure, but doesn't need to be relational. That data is then returned with the rest of the row in a SELECT. I will use JSONB for the same reason, and I also need to query that data once in awhile.

JSONB is also very useful for HTTP JSON APIs because you can have the database construct the JSON response and the API server just returns it. I found it to be faster than constructing the JSON response in the API server most of the time. Of course, it depends on the use case whether you can do that.


There's no valid conclusion if they don't use the strengths of the tested products. They didn't even use indices, for example...




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

Search: