I am working an a search page that allows users to search for houses for sale. Typical search criteria include price/zip code/# bedrooms/etc.
I would like to allow the user to save this criteria in a database and email new homes daily.
I could either:
1) Serialize a "SavedSearch" object into a string and save that to the database, then deserialize as needed.
2) Have a list of columns in a tblSavedSearch corresponding to the search criteria - price/zip/# bedrooms/etc.
I am concerned that if I choose option 1, my saved search criteria will change and leave the searialized objects in the database invalid, but option 2 doesn't feel like an optimal solution either.
How have others solved this problem?