If you are finding that OmniFocus has begun to feel a bit sluggish — especially in the time it takes to open or sync — it may be a good to time do some review your database and do some house cleaning. This article provides information on assessing the size of your database and the options you have for reducing that size.
If you are using OmniFocus 4, please see the current version of this article.
Table of Contents
Find your database size
OmniFocus 3 can show you the following statistics for your database, which can be useful data points when trying to identify if the size of your database may be a factor in performance or sync problems you are experiencing:
Compact-list
- Total Attachment Size
- Number of Projects
- Number of Tags
- Number of Tasks
- Number of Attachments
- Number of Folders
- Database Size (excluding attachments)
- Number of Perspectives
- Number of Transactions
While the total attachment size and database size are a good thing to look at first, those numbers alone don’t tell the full picture. For instance, if you find the total attachment size is >1GB, that is pretty easy to spot as a potential problem; however, having a huge number of attachments, even if the total size is reasonable, can also be problematic. A common example of this is someone that uses Mail Drop, and ends up with tons of tiny attachments in their databse from the tiny image files people use in email signatures. Simiarly, having a huge number of tasks can be a source of performance issues, even if the overall size numbers don’t stand out as a problem.
Here is where to find that information:
Compact-list
- OmniFocus 3 for Mac
- Open OmniFocus.
- Choose OmniFocus > Preferences…
- Go to the Update or System Info pane.
- Click “Learn more about what kind of information is sent”.
- In the popover that opens, scroll to the Database Statistics section at the bottom.
Compact-list
- OmniFocus 3 iPhone and iPad
- Open OmniFocus.
- Go to Settings > Send Anonymous Data.
- Scroll to the bottom, and tap Database Statistics.
Archive old items on Mac
The longer you use OmniFocus the more and more completed items you will build up, and this has the potential to begin negatively impacting performance and syncing. While it can be useful to pull up something you previously completed, it typically isn’t something you need to do all that often for older items. This is why OmniFocus for Mac provides an option to archive old items to a separate, non-syncing archive file, keeping your main database sprightly and nimble:
Compact-list
- Open OmniFocus.
- Choose File > Move Old Data to Archive…
- Choose a cutoff date.
- Click Move to Archive.
After archiving, if you’d like to access this data again choose File > Open Archive in the menu bar.
Bulk delete on iPhone and iPad
When you have over 1000 items that have been completed for more than six months, OmniFocus 3 provides the option to bulk delete the old items. OmniFocus 3 will show a red dot over the Settings button on the Home Screen / Sidebar to let you know when this option is available. When this bulk deletion option is available you’ll find an option for Clean Database appear in Settings under the section for Database. Here you will see an exact count of the number of old items with an option to delete all of the old items at once, or you can review and manually delete items from the Completed perspective.
If you are syncing with a copy of OmniFocus for Mac, you will be directed to archive using the Mac, instead of deleting the items.
Delete attachments
OmniFocus provides you with a place to see a list of all your attachments, making it easy to find and delete attachments that are bogging down your database. Here is where to find the list of attachments:
- OmniFocus 3 for Mac: Choose Window > Attachment List in the menu bar
- OmniFocus 3 for iPhone and iPad: Go to Settings > Attachments
Here you can see the size of each attachment, sort by size or date added, and see the items using the attachment. On Mac, you also have the option to export attachments, which can be useful if you want to get the file out of OmniFocus but not lose it entirely.
Immediately compacting and syncing the reduced database
Due to the mechanism that OmniFocus uses to keep your data in sync between your devices, when you delete something there is a delay before the data for that item is actually removed from database. After deleting something, the data will only be truly removed once all of copies of OmniFocus you are using have synced. This can present an issue when reducing your database size because it is causing sync trouble. In this situation you may need to steps to manually “compact” your database, so that any delete items are immediately and completely removed.
Here are the steps to manually compact your database, then immediately push it to the server:
-
Choose File > Export in the menu bar.
-
In the Export dialog, click the File Format pop-up menu, then choose Backup Document (OmniFocus).
-
Choose where to export this file. (we recommend the Desktop)
-
Click Save.
-
In Finder, locate and double-click the exported OmniFocus-backup.ofocus file.
For versions of OmniFocus prior to 3.8, additional steps are required:
In the opened backup, add and delete a new task, then choose File > Compact Database in the menu bar.
-
Click Revert to This Backup in the yellow bar.
-
In the confirmation prompt, click Revert.
-
Close the OmniFocus Backup window.
-
Open and sync OmniFocus on your other devices.
-
You may be asked to choose a database to keep. If so, choose the option to keep the sync or server database.