R
R
Roman2016-01-27 14:07:30
MySQL
Roman, 2016-01-27 14:07:30

What to read on optimizing SQL queries?

Started working on the project, PostgreSQL 9.4 base. The first task is to review and optimize queries, search for unnecessary and duplicate queries.
Interested in a manual, book or article with practical examples on optimizing SQL queries, what are the pitfalls for aggregate functions of the COUNT type on large tables, how to correctly create complex indexes on several fields, how to read the query execution plan.
A special moment is how to work with tables that work like a log, they are constantly growing, sampling on them is getting slower, and if you need to do a JOIN with other tables of such a large table? Of course, you can make separate requests, and then merge them into an array, but the right approach is of interest.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
wol_fi, 2016-01-27
@romanpostovalov

For mysql, I recommend progbook.ru/bd/mysql/1182-shvarc-mysql-optimizaciy...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question