Skip to content

information_schema/top_costly_queries.sql - serious duplications counting / summing happens #12

@Shai-Di

Description

@Shai-Di

Hey, just stumbled upon this repository, very useful idea - however, when looking at the results of this query we see heavy duplications occuring.
A query that was triggered 1,141 times in the past 14 days, appears in the result as if it was triggered over 1 million times.
The cost for that query alone results as if it was a 100 times greater than our total project cost, which definitley made no sense.

I believe the issue comes from the cross join between src1 and src2 resulting in many duplications for each job, but I hope I'm understanding the query correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions