Opened 12 years ago

Closed 12 years ago

#26 closed task (fixed)

Check if vfound_names_by_domain counts duplicate results twice

Reported by: wander Owned by: schwittmann
Priority: important Component: distserver
Keywords: Cc:

Description

If yes, either

  • fix issue or
  • write comment somewhere near the view

Change History (2)

comment:1 Changed 12 years ago by wander

Owner: set to schwittmann

comment:2 Changed 12 years ago by schwittmann

Resolution: fixed
Status: newclosed

Implemented. Increased query execution time by 500%.

CREATE OR REPLACE VIEW vfound_names_by_domain AS

 SELECT count(*), domain_suffix FROM (SELECT DISTINCT r.result as result, p.domain_suffix as domain_suffix
   FROM bfresults r
   JOIN bfjobs j ON j.id = r.job
   JOIN bfsplits s ON s.id = j.split
   JOIN bfsubprojects p ON p.id = s.subproject
   ) as subq
  GROUP BY domain_suffix
  ORDER BY count DESC;

Note: See TracTickets for help on using tickets.