Postgresql – Make combinatorial query faster
I am struggling with a Postgres slow query issue. Fixtures Consider the following fixtures: DROP TABLE IF EXISTS expectation; DROP TABLE IF EXISTS actual; CREATE TABLE expectation ( set_id int NOT NULL, value int NOT NULL ); INSERT INTO expectation…