So I just finished reading:
And so I am rewriting my entire website with all of these concepts in mind.
One thing I’m working on right now requires a search with OR functionality. Constraints on a search are AND so therefore I need to use a filter with an advanced search (which allows for the OR functionality). However, after reading the above book, advanced searches are basically last ditch resorts as they are performed complete client side (especially in my case because I have to do this advanced search on the ENTIRE user dataset which will be super taxing on the user’s device).
So, I have been googling and it seems like the way to do OR searches is to use “merged with” but in the book it says “merged with” is done client-side.
HOWEVER, I’m thinking that this is still better than the advanced search filter because I get to add the constraints to each of the searches, which I’m assuming (?) is done server on both searches.
Here are my two searches that get merged together:
So my question is somewhat twofold:
- Where do the searches happen?
- given that I have a merged with, do both searches still happen server side and the merging is done client side?
- or is the first search done server side and then everything after the merge with is done client side?
- My main goal is user perceived performance (as discussed in the book)
- If both searches are done server side, then I should be able to do this search in a hidden group that runs unbeknownst to the user and then I call upon that group’s value when I’m ready for it
- If the second search is done client side, that’s not going to be that much better than just running the filter with the advanced search. So is there a better option?
I know the question is long but it’s a difficult one to explain.