the intersects will be very taxing to do

the reason you need to search and intersect and filter so much is a database structuring issue more than anything

basically you should have a child data to hold the data so it is more efficient

a simple example:
company has a list of contacts
could store as list on company but then you’d need to store roles on contacts and do
companys contacts : filtered to this contacts role = ceo
or similar to what you’re doing:
search for companies contacts intersected with search of contacts filtered to role

that’s very inefficient way to do it

the most efficient way would be a child data to hold that data instead
“company contact”
fields: company, contact, role

now on the page you can just do search for company contact

anytime I see “intersect” in an app it’s usually a database structuring issue. Intersect is fine on SMALL lists but it is terrible on big lists and it is even more terrible when combined with filters after the intersect.

you’re basically saying - here’s a list of 100,000 things, match them to 1000 things and also these other 1000 things and also filter to these things…

vs
search once

1 Like