Commit da59a8d4 authored by Leo Gordon's avatar Leo Gordon
Browse files

No need to left join into worker table - thanks, Javier!

parent f0be65dd
...@@ -37,7 +37,6 @@ CREATE OR REPLACE VIEW progress AS ...@@ -37,7 +37,6 @@ CREATE OR REPLACE VIEW progress AS
CREATE OR REPLACE VIEW msg AS CREATE OR REPLACE VIEW msg AS
SELECT a.analysis_id, a.logic_name, m.* SELECT a.analysis_id, a.logic_name, m.*
FROM log_message m FROM log_message m
LEFT JOIN worker w USING (worker_id)
LEFT JOIN job j ON (j.job_id=m.job_id) LEFT JOIN job j ON (j.job_id=m.job_id)
LEFT JOIN analysis_base a ON (a.analysis_id=j.analysis_id); LEFT JOIN analysis_base a ON (a.analysis_id=j.analysis_id);
......
...@@ -37,7 +37,6 @@ CREATE OR REPLACE VIEW progress AS ...@@ -37,7 +37,6 @@ CREATE OR REPLACE VIEW progress AS
CREATE OR REPLACE VIEW msg AS CREATE OR REPLACE VIEW msg AS
SELECT a.analysis_id, a.logic_name, m.* SELECT a.analysis_id, a.logic_name, m.*
FROM log_message m FROM log_message m
LEFT JOIN worker w USING (worker_id)
LEFT JOIN job j ON (j.job_id=m.job_id) LEFT JOIN job j ON (j.job_id=m.job_id)
LEFT JOIN analysis_base a ON (a.analysis_id=j.analysis_id); LEFT JOIN analysis_base a ON (a.analysis_id=j.analysis_id);
...@@ -37,7 +37,6 @@ CREATE VIEW IF NOT EXISTS progress AS ...@@ -37,7 +37,6 @@ CREATE VIEW IF NOT EXISTS progress AS
CREATE VIEW IF NOT EXISTS msg AS CREATE VIEW IF NOT EXISTS msg AS
SELECT a.analysis_id, a.logic_name, m.* SELECT a.analysis_id, a.logic_name, m.*
FROM log_message m FROM log_message m
LEFT JOIN worker w USING (worker_id)
LEFT JOIN job j ON (j.job_id=m.job_id) LEFT JOIN job j ON (j.job_id=m.job_id)
LEFT JOIN analysis_base a ON (a.analysis_id=j.analysis_id); LEFT JOIN analysis_base a ON (a.analysis_id=j.analysis_id);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment