The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniFocus > OmniFocus 1 for Mac
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Cleaning up the archive Thread Tools Search this Thread Display Modes
I seem to have a relatively large OF database. I say this because behavior, especially on my iPod Touch, can be very sluggish at times. In order to keep things as quick as possible I archive my completed tasks on a regular basis.

Now I've noticed that whenever I open the archive, it can be VERY sluggish to find what I'm looking for. Searching for a string inevitably starts the colorful wheel spinning for a while.

I have a number of repeated maintenance projects and tasks that I perform and mark as completed every day and every week. I really don't need a record of these items in the archive, and I bet it's all of these completed maintenance items that really slow down work when I'm in the archive.

I was afraid that deleting these items would be as sluggish as a search, but I did some deletion yesterday and I was pleasantly surprised to see that the wait was tolerable. Of course, the best way to ensure that I delete as many of the unnecessary items as possible is to perform a string search, and that's when sluggishness rears its ugly head.

I was wondering if anyone else has large archives that they have to prune? Does anybody have any ideas how to prune effectively and as rapidly as possible?

Any thoughts appreciated!

I don't know that my archive is overly large, but I regularly delete projects that repeat on a weekly or monthly basis (and are identical) from OF once they're completed, often before they even _get_ to the archive. I don't see a real need for knowing that I did my weekly tasks 1.5 years ago, and every week since, when they're the same :-)
You can run Where in OF from the toolbar of your main document, and conduct quite powerful house-keeping searches of folders|projects|tasks|contexts in your archive. The search language is essentially applescript (with a few extensions), and draws on several recent (Ver 1.8) enhancements to the OmniFocus applescript library.

(You just need to prefix any search with the word archived)

Apart from obvious text and date searches like:
archived projects where <txt> is in name or <txt2> is in name
archived tasks where (completion date ≥ <dte>) and (completion date ≤ <dte2>)
you can also build more complex searches like:
archived projects where ((singleton action holder is false) and (number of available tasks < 3) and (number of completed tasks > 10))

(It's fairly fast in my rather heavily pruned archive, but I haven't tested it with enormous archives)


Last edited by RobTrew; 2012-07-17 at 06:55 AM..
Thanks, CatOne. That gives me an idea. I will create perspectives to display the repeating tasks that I don't need to archive for posterity, and then I'll schedule a repeating task to remind me to view the perspectives and delete the tasks.

That will keep me in good shape for the future.
And thanks, RobTrew. I'll take a look at the script. Maybe I can use it to clean up the archives as much as possible without too much hassle.

I think I'll be able to get my act in pretty good shape using both these hints. Thanks!
If you want a view which displays (in the main OF database) only the kind of projects which CatOne describes, you could try something like:
projects where (unit of repetition) is week or (unit of repetition) is month --sh nw
(Where --sh makes it a saveable shortcut, and nw makes it display in a new window)
I've finally gotten around to trying to use this script for my purposes. It works quite nicely but I am having one problem. I'm using the following search string:

tasks where its repetition is not missing value --nw=yes --st=complete

The tasks that this finds seem to be exactly what I'm looking for. Unfortunately, it also selects projects and groups that are not completer. They probably contain tasks that meet the criteria but I just want to delete the tasks, not the uncompleted projects/groups.

I was wondering, Rob, if there is a way to filter out the cases I just mentioned. I suppose I could just go through the list by hand and unmark the ones I don't want to delete but it would be a lot nicer if the process were completely automatic

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Inbox Items not Cleaning Up adic26 OmniFocus 1 for Mac 2 2012-02-22 07:52 PM
Cleanup is not cleaning joeworkman OmniFocus 1 for Mac 4 2008-07-17 09:54 PM
Cleaning up after 10,000 installs? cacibi OmniFocus 1 for Mac 4 2007-08-15 12:05 PM

All times are GMT -8. The time now is 10:22 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2021, vBulletin Solutions, Inc.