bullet
bullet copied to clipboard
Suppress messages for impossible JOINS across multiple databases?
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?