Closed
Bug 419957
Opened 17 years ago
Closed 17 years ago
History sidebar "By Site" should use visit_count to avoid display of empty sites
Categories
(Firefox :: Bookmarks & History, defect, P2)
Firefox
Bookmarks & History
Tracking
()
RESOLVED
FIXED
Firefox 3
People
(Reporter: ondrej, Assigned: ondrej)
References
Details
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
beltzner
:
approval1.9+
|
Details | Diff | Splinter Review |
When history sidebar shows results "By Site", it does not join with history visits to be superfast. However, if you import bookmarks or clear your history, the view will show all the sites.
We can stay superfast but avoid displaying those hosts by using visit_count from the moz_places table. This could speed up "By Date and Site" view too.
Flags: blocking-firefox3?
Attachment #306133 -
Flags: review?(dietrich)
Comment 1•17 years ago
|
||
actually visit_count is not realiable so this probably depends on Bug 416313
Comment 2•17 years ago
|
||
This will not block the final release of Firefox 3.
Flags: wanted-firefox3+
Flags: blocking-firefox3?
Flags: blocking-firefox3-
Comment 3•17 years ago
|
||
in the second query (the one with the additional conditions):
- "WHERE h.hidden <> 1 AND h.rev_host = '.' "
+ "WHERE h.hidden <> 1 AND h.rev_host = '.' AND visit_count > 0 "
- "WHERE h.hidden <> 1 AND h.rev_host <> '.' "
+ "WHERE h.hidden <> 1 AND h.rev_host <> '.' AND visit_count > 0 "
h.visit_count would be more consistent, although it does not make any difference.
Assignee | ||
Comment 4•17 years ago
|
||
(In reply to comment #3)
> h.visit_count would be more consistent, although it does not make any
> difference.
You are right, and because unbitrotting was necessary anyway, here comes the fixed patch.
Attachment #306133 -
Attachment is obsolete: true
Attachment #312243 -
Flags: review?(dietrich)
Attachment #306133 -
Flags: review?(dietrich)
Comment 5•17 years ago
|
||
Comment on attachment 312243 [details] [diff] [review]
Use visit_count to filter out empty hosts (nit and unbitrot)
r=me thanks.
Attachment #312243 -
Flags: review?(dietrich) → review+
Comment 6•17 years ago
|
||
Comment on attachment 312243 [details] [diff] [review]
Use visit_count to filter out empty hosts (nit and unbitrot)
fixes blocker bug 432197.
Attachment #312243 -
Flags: approval1.9?
Comment 7•17 years ago
|
||
Attachment #312243 -
Attachment is obsolete: true
Attachment #319658 -
Flags: approval1.9?
Attachment #312243 -
Flags: approval1.9?
Updated•17 years ago
|
OS: Windows XP → All
Priority: -- → P2
Hardware: PC → All
Target Milestone: --- → Firefox 3
Comment 8•17 years ago
|
||
Attachment #319658 -
Flags: approval1.9? → approval1.9+
Comment 9•17 years ago
|
||
Marking a blocker since it blocks bug 432197 and we are approving the patch.
Flags: blocking-firefox3- → blocking-firefox3+
Comment 10•17 years ago
|
||
Dietrich/Marco any performance concerns here? Looks like just an extra part of the where clause and no additional joins - but want to make sure...
Updated•17 years ago
|
Whiteboard: [has patch][has review][has approval]
Comment 11•17 years ago
|
||
Since we're now able to use moz_places.visit_count instead of joining against moz_historyvisits, this should not have a significant effect on performance.
Comment 12•17 years ago
|
||
Checking in toolkit/components/places/src/nsNavHistory.cpp;
/cvsroot/mozilla/toolkit/components/places/src/nsNavHistory.cpp,v <-- nsNavHistory.cpp
new revision: 1.302; previous revision: 1.301
done
Checking in toolkit/components/places/tests/unit/test_history_sidebar.js;
/cvsroot/mozilla/toolkit/components/places/tests/unit/test_history_sidebar.js,v <-- test_history_sidebar.js
new revision: 1.4; previous revision: 1.3
done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Whiteboard: [has patch][has review][has approval]
Comment 13•17 years ago
|
||
backed out, tree is closed
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•17 years ago
|
Whiteboard: [has patch][has review][has approval]
Comment 14•17 years ago
|
||
Checking in toolkit/components/places/src/nsNavHistory.cpp;
/cvsroot/mozilla/toolkit/components/places/src/nsNavHistory.cpp,v <-- nsNavHistory.cpp
new revision: 1.304; previous revision: 1.303
done
Checking in toolkit/components/places/tests/unit/test_history_sidebar.js;
/cvsroot/mozilla/toolkit/components/places/tests/unit/test_history_sidebar.js,v <-- test_history_sidebar.js
new revision: 1.6; previous revision: 1.5
done
Status: REOPENED → RESOLVED
Closed: 17 years ago → 17 years ago
Resolution: --- → FIXED
Whiteboard: [has patch][has review][has approval]
Comment 15•17 years ago
|
||
(In reply to comment #10)
> Dietrich/Marco any performance concerns here? Looks like just an extra part of
> the where clause and no additional joins - but want to make sure...
should not be a problem it's a simple check on a column already joined
Comment 16•15 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•