Closed Bug 388314 Opened 19 years ago Closed 8 years ago

extend nsINavHistoryService interface to allow for efficient previousVisitCount() for page info

Categories

(Firefox :: Bookmarks & History, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INACTIVE

People

(Reporter: moco, Unassigned)

References

(Blocks 1 open bug)

Details

extend nsINavHistoryService interface to allow for efficient previousVisitCount() for page info. see bug #388243 for details. note, we need something efficient for "how many times before today have I visited domain X" (not URI X). I think we want the query to be: SELECT count(*) FROM moz_places h JOIN moz_historyvisits v ON h.id = v.place_id WHERE (v.visit_date <= ?1 AND h.rev_host >= ?2 AND h.rev_host < ?2 AND h.hidden <> 1 AND v.visit_type <> 4 ) On ispiked's large places.sqlite, this is an efficient query.
for future reference, we will also want to exclude vist_type of 0 SELECT count(*) FROM moz_places h JOIN moz_historyvisits v ON h.id = v.place_id WHERE (v.visit_date <= ?1 AND h.rev_host >= ?2 AND h.rev_host < ?2 AND h.hidden <> 1 AND v.visit_type <> 4 AND v.visit_type <> 0 )
Bug 451915 - move Firefox/Places bugs to Firefox/Bookmarks and History. Remove all bugspam from this move by filtering for the string "places-to-b-and-h". In Thunderbird 3.0b, you do that as follows: Tools | Message Filters Make sure the correct account is selected. Click "New" Conditions: Body contains places-to-b-and-h Change the action to "Delete Message". Select "Manually Run" from the dropdown at the top. Click OK. Select the filter in the list, make sure "Inbox" is selected at the bottom, and click "Run Now". This should delete all the bugspam. You can then delete the filter. Gerv
Component: Places → Bookmarks & History
QA Contact: places → bookmarks
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.