|
|
|
|
|
by pradeepchhetri
554 days ago
|
|
To my knowledge, both Postgres and MySQL has their own strengths and weaknesses. Example: mvcc implementation, data replication, connection pooling and difficulty of upgrades were the major weaknesses of Postgres which are much improved over time. Similarly mysql query optimizer is consider lesser developed than that of Postgres's. Overall I think Postgres adoption and integrations and thus community is much more wider than MySQL which gives it major advantage over MySQL. Also looking at the number of database-as-a-service companies of Postgres vs those of MySQL we can immediately acknowledges that Postgres is much widely adopted. |
|
- MySQL performs a bit better when reading by primary key
- Postgres performs a bit better when doing random inserts/updates.
- MySQL you don't need to worry about vacuums
- The MySQL query optimizer is nice because you can give it hints when it misbehaves. This can be a godsend during certain production incidents.
- Last I checked MySQL still has a nicer scaling story than postgres, but I'm not sure what the latest here is.
- Connection pooling is still heavily in MySQLs favor i.e. you don't need the PG bouncer for lots for scenarios.