-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Review query performance #3571
Comments
Running SELECT "packages"."id" AS "packages_id", "packages"."created_at" AS "packages_created_at", "packages"."updated_at" AS "packages_updated_at", "packages"."platform_compatibility" AS "packages_platform_compatibility", "packages"."processing_stage" AS "packages_processing_stage", "packages"."score" AS "packages_score", "packages"."score_details" AS "packages_score_details", "packages"."status" AS "packages_status", "packages"."url" AS "packages_url", "repositories"."id" AS "repositories_id", "repositories"."created_at" AS "repositories_created_at", "repositories"."updated_at" AS "repositories_updated_at", "repositories"."package_id" AS "repositories_package_id", "repositories"."authors" AS "repositories_authors", "repositories"."commit_count" AS "repositories_commit_count", "repositories"."default_branch" AS "repositories_default_branch", "repositories"."first_commit_date" AS "repositories_first_commit_date", "repositories"."forked_from" AS "repositories_forked_from", "repositories"."forks" AS "repositories_fork Unfortunately, the query is truncated but I'm pretty sure we can narrow this down and it's almost certainly a package page query. We should also be able to get some request logs from CF to back this up. |
The top requests were to sitemap urls, so these queries are also worth reviewing. |
I've set Edit: Not sure if this can actually be made to work in Azure's DB:
|
The incident on Dec 30 is a reminder to review query performance.
The package page in particular is powered by a number of queries which aren't trivial and could perhaps be optimised, for example by backing them with a materialised view.
The text was updated successfully, but these errors were encountered: