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

Suppress messages for impossible JOINS across multiple databases? #644

Open
duffyjp opened this issue Jan 20, 2023 · 0 comments
Open

Suppress messages for impossible JOINS across multiple databases? #644

duffyjp opened this issue Jan 20, 2023 · 0 comments

Comments

@duffyjp
Copy link

duffyjp commented Jan 20, 2023

When using multiple databases I'll see lots of warnings to use eager loading, but that's not actually possible across multiple databases, right?

Made up scenario:

Local Database Vendor Database
Sale :product_id Product :id

So say I'm listing Sales and pulling data from the vendor's server, there's no way to avoid N+1 short of caching everything locally which isn't always practical.

Could we detect in Bullet if the N+1 is going across distinct servers and either suppress the message or maybe show a different message explaining the situation? Maybe there's an optimization I'm not thinking of we could suggest?

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

No branches or pull requests

1 participant