Skip to content
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

Too many loops #388

Open
Krysztophe opened this issue May 31, 2021 · 0 comments
Open

Too many loops #388

Krysztophe opened this issue May 31, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@Krysztophe
Copy link

I have a plan with a simple Seq Scan that seems innocent, but takes too much time (see Mantis 10932).

The reason is this:

Loops: 170252550

It is not obvious enough.

Usually the problem is a Nested Loop, that is horribly inefficient if done too many times.
The node is tagged Slow and shows a high buffers count, but the Nested Loop may be out of the screen and a user may wonder why it is so for a single node if it overlooks the Loops line.

But I'm not sure which rule to use.
An arbitrary rule would be better than nothing:
more than 5 loops -> yellow ;
more than 100 -> red ;
more than 1000 -> brown

Screenshot_20210531_185158

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants