Released: Apr 27, 2010, Running time: 64 min
In this episode:
We refactor the association between Brand and Search so we don’t run the search for duplicate search terms.
Add to cart$5.00Released: Apr 27, 2010, Running time: 64 min
In this episode:
We refactor the association between Brand and Search so we don’t run the search for duplicate search terms.
Add to cart$5.00We refactor the association between Brand and Search so we don’t run the search for duplicate search terms.
In the current form, the associations between Brand and Search are:
This allows for duplicate search terms to exist within the database, if they are associated with different brands. This is not desired because we end up running a search for each search term, making unnecessary queries against external services. Also, we end up having repeating search results inserted into the database, because each search result is associated with the search term.
Solution:
Because these are not changes that will be noticed by the user, we don’t have to update any of the features. Their role at this point is just to keep us in check, to make sure we have not broken any of the functionality.
No comments yet