Changes

Jump to: navigation, search

User:Sspitzer/GlobalFrecency

245 bytes added, 21:33, 29 December 2007
no edit summary
we recalc twice on idle, one for invalid and one for old frecencies. need marco's last_visit_date change to make old work right, or do a subquery until then. right now, we are going to recalc the same places over and over. (if we do a sub query, watch out for performance)
 
recalculating for invalid (frecency == -1) is for firefox 2 / 3b2 -> b3
 
recalculating for old frecencies is for the ebay problem (https://bugzilla.mozilla.org/show_bug.cgi?id=394038#c19)
 
to solve the ebay problem, we should also recalc the moz_places with high frecency and "old" last visit date. (In another patch, marco has added last visit date to moz_places, which will make the query we need more efficient as we don't have to join against moz_historyvisits)
 
If something has a recent last visit date, then we recently recalculated
frecency, so the frecency would be accurate.
 
If something has a low frecency and an old last visit date, recalculating would only lower the frecency (and low frecency wouldn't be hurting our autocomplete results.)
 
But if something has a high frecency and an old last visit date, recalculating the frecency would lower the frecency, which would solve the ebay problem.
7)
prefs->SetIntPref(PREF_BROWSER_LEFTPANEFOLDERID, -1);"
x) But to solve the ebay problem, we should also recalc the moz_places with highfrecency and "old" last visit date. (In covered by another patch, marco has added lastvisit date to moz_placesbug, which will make the query but we need more efficient aswe don't have to join against moz_historyvisits) If something has a recent last visit date, then we recently recalculatedfrecency, so the frecency would be accurate. If something has a low frecency and an old last visit date, recalculating wouldonly lower the frecency (and low frecency wouldn't be hurting our autocompleteresults.) But if something has a high frecency and an old last visit date, recalculatingthe frecency would lower the frecency, which would solve the ebay problemfix it before landing.
x)
234
edits

Navigation menu