Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

reports:prune:orphaned taking a lot of time #324

Open
bigon opened this issue Jun 24, 2015 · 0 comments
Open

reports:prune:orphaned taking a lot of time #324

bigon opened this issue Jun 24, 2015 · 0 comments
Labels
Milestone

Comments

@bigon
Copy link

bigon commented Jun 24, 2015

Hi,

I think that the queries in the "reports:prune:orphaned" target are not really optimized.

On my PE setup (using postgresql), the following query is now running for more than an hour just to do a count

SELECT COUNT(*) FROM "metrics"  WHERE (report_id not in (select id from reports))
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants