Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

adnan.shabbir's avatar

Recommendation for large database more then 1B records: PostgreeSQL vs MySQL

I'm currently using MySQL 5.7. My database is getting bigger day by day and sometimes its too costly to make some simple queries on a large db table.

What do you guys recommend about PostgreeSQL, is it better then MySQL in my case ?

Is it more fast and reliable to handle more then 1B records?

thank you

0 likes
2 replies
devfrey's avatar

It really depends on your specific use case. Optimising queries and table indexes can also help a great deal.

adnan.shabbir's avatar

I already optimised queries and added indexes etc. My question is about switching database. Postgree vs MySQL to handle large database

Please or to participate in this conversation.