Closed Bug 489173 Opened 16 years ago Closed 11 years ago

Latest Google Toolbar Appears to Make places.sqlite Massive

Categories

(Toolkit :: Places, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: sdwilsh, Unassigned)

References

()

Details

See the url, but we recently had someone come on irc with this problem as well.  Looks like google is taking a screenshot of every visited page, and then storing it as an annotation.

This bug is a tracker for the issue.
I'm the someone on IRC.

delete from moz_annos where anno_attribute_id = 11;  // 11 =
'google-toolbar/thumbnail'
vacuum;

places.sqlite went from 220MB to 23MB.  Shaved another MB by removing
anno_attribute_id 12, 'google-toolbar/thumbnail-score'.
If you untick "Enable the Google new tab page" in Google Toolbar options, it appears to remove the entries from moz_anno_attributes.  I'm not sure if it would also have removed the annotations, as I removed them manually myself, but even if it did I would not expect it to vacuum.
Reported to Google support forum (best bug tracker I could find): 
http://www.google.com/support/forum/p/Toolbar/thread?tid=6e4054eeeb0e5d4e&hl=en
Hey kev,

Do we have any contacts on the Google Toolbar team?  The places team would like to get in touch with them about this as it can cause some major performance problems for users.
Sending request, will cc:
Just an update, I spoke with the Toolbar product team, and they have addressed this with their pending release.
Any strong-heart person who wants to get rid of thumbnails can run these queries on his db.
This is provided as is, no guarantee, and big WARNING (this could destroy your data, BACKUP FIRST!):
DELETE FROM moz_items_annos WHERE anno_attribute_id = (SELECT id FROM moz_anno_attributes WHERE name = "google-toolbar/thumbnail");
DELETE FROM moz_annos WHERE anno_attribute_id = (SELECT id FROM moz_anno_attributes WHERE name = "google-toolbar/thumbnail");
DELETE FROM moz_anno_attributes WHERE name = "google-toolbar/thumbnail";
VACUUM;
Latest release seems to fix this issue.
now that will have vacuum support, i definately want a preventive maintenance task to fix this.
Depends on: 512854
Just re-posting my suggestion from #514187:

Firefox could blacklist this specific version of the google toolbar to prevent issues like this.

(i dont know if vacuum means the same as backup/restore, but on my case, it helped to do a backup & restore)

this huge file caused also massive delays when firefox was closed (up to 15 minutes on a 2GHz AMD Sempron), not only wasted space on the disk (see #514187)
What's the status of this bug?

I just saw a latest tweet which reports this issue:
https://twitter.com/a_ars/statuses/4843452768456704
and SQLite Optimizer is still ranked in the top 10 of our add-ons site:
https://addons.mozilla.jp/firefox/extensions/?sort=downloads&num=10
(In reply to comment #14)
> I just saw a latest tweet which reports this issue:
> https://twitter.com/a_ars/statuses/4843452768456704
Could you provide a translation of that please?
The tweet claims
> places.sqlite of Firefox has surpassed 400 MB. I heard Google Toolbar was 
> responsible for this issue. Dropping a table called moz_annos with PupSQLite 
> resulted in 22 MB.
(In reply to comment #16)
> The tweet claims
> > places.sqlite of Firefox has surpassed 400 MB. I heard Google Toolbar was 
> > responsible for this issue. Dropping a table called moz_annos with PupSQLite 
> > resulted in 22 MB.
Well, dropping the table is a pretty terrible idea.  That will break Sync an anything else that uses annotations.  We can't really do anything about this because Google was using one of our public APIs (there were just using it *a lot*).  I would hope the Google would clean up after themselves, but if they haven't, we should get in touch with them.
"Google Toolbar for Firefox has been discontinued

For details, see the announcement. There will be no further updates or security fixes to Google Toolbar for Firefox. For this reason we strongly recommend discontinuing the use of the toolbar."

https://www.google.com/intl/en/toolbar/ff/
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.