MySQL/PostgreSQL mentoring - database optimization
Hi,
I will establish a mentoring relationship with a SQL programmer/architect experienced in large databases. These are specific problems to solve related to query performance and database design.
I work as one man army with PHP and MySQL, so I need the knowledge of someone better than me ; )
Communication can be by text via email, signal, etc.
Please send me suggestions.
---
The example problem to be solved is a COUNT query to count rows and create pagination on a large table with several relations. The view has a lookup on dynamic parameters of attached tables, so several LEFT JOINs were used.
The answer takes several seconds. The solution probably needs to be designed differently. And this is where best practices are needed to avoid approaching this issue again.