I’m trying to implement a feature where a user can request to save a search. If requested, the rows found in the search will be tagged so in the future, if the same search is performed, the program only has to look for that tag.
Would this speed up future redundant queries? Is there a feature in MySQL that does this? I’m trying to avoid creating a new table for every saved search.
Thanks,
fertileneutrino
Create a table with ‘tag, id’, i.e. a list of all the ids found, and associate them with a tag.
This will work fine, but, if new stuff is added the search won’t be updated. You said to save the rows not the search.
If you want to save the search then create a view.