skip to Main Content

Postgresql – Postgres Index to speed up LEFT OUTER JOIN

Within my db I have table prediction_fsd with about 5 million entries. The site table contains approx 3 million entries. I need to execute queries that look like SELECT prediction_fsd.id AS prediction_fsd_id, prediction_fsd.site_id AS prediction_fsd_site_id, prediction_fsd.html_hash AS prediction_fsd_html_hash, prediction_fsd.prediction AS…

VIEW QUESTION

MySQL uses wrong index

There is a table with these columns: Name Type Id int DateTime datetime(6) CompanyId int (FK) IsExcluded tinyint(1) There are 2 BTREE indexes: CompanyId ComapnyId,DateTime,IsExcluded Following select is using the first index with only one column and this select takes…

VIEW QUESTION
Back To Top
Search