Skip to content

Commit

Permalink
fix(gatsby): Update warning about long running queries (#34207)
Browse files Browse the repository at this point in the history
There was some confusion on Discord about what this warning means and whether it's a problem to be fixed.

I reworded the warning slightly to a) be clear what "long" means (15s) and b) be clear it's not necessarily a problem and if it is a problem, an indication of what it could be.
  • Loading branch information
KyleAMathews committed Dec 7, 2021
1 parent 0e96111 commit 6113cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby/src/query/query-runner.ts
Expand Up @@ -29,7 +29,7 @@ export interface IQueryJob {

function reportLongRunningQueryJob(queryJob): void {
const messageParts = [
`Query takes too long:`,
`This query took more than 15s to run — which is unusually long and might indicate you're querying too much or have some unoptimized code:`,
`File path: ${queryJob.componentPath}`,
]

Expand Down

0 comments on commit 6113cfc

Please sign in to comment.