beyondcode / beyondcode/laravel-query-detector

Issue when relation more than one same relation and no results.

Open
#85 4 comments 4 reactions 0 assignees View on GitHub
good first issue
Dominant language
PHP
Stars
2.1k
Forks
144
PR merge metrics
No merged PRs in 30d

Description

Hello, i think i found a issue,

I have this model with 3 relations with Person Model.

and when i filter to show some record without relations with persons the N+1 log shows...

![image](https://user-images.githubusercontent.com/5194641/123267956-f5aee580-d4d3-11eb-8b30-a9e5a8e5befb.png)

But if u see the querie, shows the correct way, its not a N+1 error....
![image](https://user-images.githubusercontent.com/5194641/123267998-fe072080-d4d3-11eb-9d17-1b9de2b48de1.png)

this is the n+1 log;
![image](https://user-images.githubusercontent.com/5194641/123268029-0a8b7900-d4d4-11eb-9997-f020db98d6bd.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.