Closed
Bug 402161
Opened 17 years ago
Closed 17 years ago
moz_places_visitcount index is bad in some profiles
Categories
(Firefox :: Bookmarks & History, defect, P3)
Firefox
Bookmarks & History
Tracking
()
RESOLVED
FIXED
Firefox 3 beta4
People
(Reporter: dietrich, Assigned: mak)
References
Details
Attachments
(1 file)
2.00 KB,
patch
|
dietrich
:
review+
|
Details | Diff | Splinter Review |
seth from https://bugzilla.mozilla.org/show_bug.cgi?id=381795#c17
doesn't this change imply we've got nightly testers (anyone before the fix for
bug #389876, so pre-m7?) that have a moz_places_visitcount index (that does
them no good, as it indexes rev_host, not visit_count):
- NS_LITERAL_CSTRING("CREATE INDEX moz_places_visitcount ON moz_places
(rev_host)"));
+ NS_LITERAL_CSTRING("CREATE INDEX moz_places_visitcount ON moz_places
(visit_count)"));
should we log a spin off bug on that issue (about dropping and recreating that
index if we detect it's bad?)
this would be moot if we fix bug #402076
Flags: blocking-firefox3?
Updated•17 years ago
|
Flags: blocking-firefox3? → blocking-firefox3+
Reporter | ||
Updated•17 years ago
|
Target Milestone: Firefox 3 M10 → Firefox 3 Mx
Reporter | ||
Updated•17 years ago
|
Target Milestone: Firefox 3 Mx → Firefox 3 M11
Reporter | ||
Updated•17 years ago
|
Priority: -- → P3
Assignee | ||
Updated•17 years ago
|
Assignee: nobody → mak77
Assignee | ||
Updated•17 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•17 years ago
|
||
i'm about detecting and replacing the bogus index on long idle time
Assignee | ||
Updated•17 years ago
|
Target Milestone: Firefox 3 beta3 → Firefox 3 beta4
Assignee | ||
Comment 2•17 years ago
|
||
actually the replacement happens after 15 minutes if the bogus index is found, i've not used a transaction since it should be quite fast.
Attachment #303682 -
Flags: review?
Assignee | ||
Comment 3•17 years ago
|
||
reminder: add a note into Bug 391419 for the removal of the migration code
Assignee | ||
Comment 4•17 years ago
|
||
Comment on attachment 303682 [details] [diff] [review]
patch
somehow bugzilla had put the wrong review request -_-'
Attachment #303682 -
Flags: review? → review?(dietrich)
Reporter | ||
Comment 5•17 years ago
|
||
Comment on attachment 303682 [details] [diff] [review]
patch
>+ if (hasResult) {
>+ // drop old index
>+ rv = mDBConn->ExecuteSimpleSQL(NS_LITERAL_CSTRING(
>+ "DROP INDEX IF EXISTS moz_places_visitcount"));
>+ NS_ENSURE_SUCCESS(rv, rv);
>+ // create new index
>+ rv = mDBConn->ExecuteSimpleSQL(NS_LITERAL_CSTRING(
>+ "CREATE INDEX IF NOT EXISTS moz_places_visitcount "
>+ "ON moz_places (visit_count)"));
>+ NS_ENSURE_SUCCESS(rv, rv);
>+ }
>+
are those IF EXISTS bits necessary, since you've already manually checked that the index is there and misconfigured? r=me otherwise.
Attachment #303682 -
Flags: review?(dietrich) → review+
Assignee | ||
Comment 6•17 years ago
|
||
well no, not really necessary, but i tend to always put IF EXISTS in index deletion and creation (my personal choice), it's another layer of control to avoid some embarassing situation if something goes wrong, since it is executed on a long idle and only in rare cases, it should not have any bad impact. if you prefer i can remove them.
Comment 8•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.257; previous revision: 1.256
done
Comment 9•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
•