Rebuilding the Global Database

Revision Information
  • Revision id: 165364
  • Created:
  • Creator: Michele Rodaro
  • Comment: Edit to the "Note". See https://support.mozilla.com/en-US/kb/rebuilding-global-database/discuss
  • Reviewed: No
  • Ready for localization: No
Revision Source
Revision Content

The Global Database ("Gloda" for short) is an indexing system that enables Thunderbird to search messages. Rebuilding the Global Database re-indexes messages and address book cards. (Newsgroup messages are not indexed.)

Reasons for rebuilding the Global Database include:

  • The database may have been corrupted.
  • The search index may not be functioning correctly (such as displaying blank results, performing poorly).
  • The database is too big and needs to be reduced in size.
    Rebuilding the database will not automatically reduce the size of the index. The database will only shrink if there are fewer messages to index since the index was last updated - which can be accomplished by deleting messages, or disabling message sync for an account or folder.
  • The Global Database file becomes fragmented, which reduces index performance.

Note: In some cases, if the search index functions incorrectly on one given folder, repairing the folder to just fix the folder content - and not the whole global database - may function. Right-click on the folder you want to repair, click Properties on the context menu, select the General Information tab, click Repair Folder and then click OK.

Steps to Rebuild the Global Database

  1. Quit Thunderbird.
  2. Locate the global-messages-db.sqlite file in your Thunderbird Profile.
  3. Delete the global-messages-db.sqlite file.
  4. Start Thunderbird. The re-indexing process will start automatically. Depending on the number of messages, it might take some time for the indexing to complete. You can continue to use Thunderbird, but performance might be affected and search will return only partial results or even no results until the indexing is complete. The indexing progress can be monitored through the Tools > Activity Manager menu.

See Also