Hello, I’m working on what is fundamentally a searching app.
The user picks a list of properties:
I want to bring back a list of results, where each result doesn’t have any property not reflected in their choices.
The results don’t need all of their selection, but it can’t have anything that isn’t in their selection.
Stereo: A, B, C, D
Walkman: A, B, D
Discman: B, D
MP3: A, B, C, E
Record Player: E, F
The one thing to bear in mind is that there are a LOT of those records. 380k.
And each has 1-80 properties. Total unique properties across all records is something like 75,000.
I feel like I’ve tried almost everything in bubble, but I can’t crack it.
Also, currently I have the data in SQL, in 3 tables:
Records, RecordProperties, Properties.
I can reformat however I need to for bubble.
In SQL, I have it working as follows, assuming I’ve already converted a,b,c,d to 1,2,3,4 prior:
SELECT * FROM Records WHERE recordid NOT IN(
SELECT recordid FROM RecordProperties WHERE propertyid NOT IN (1,2,3,4)