Page 1 of 1

Many rules on one folder, or one rule on many folders?

PostPosted: Tue Dec 27, 2016 11:15 am
by nlippman
I an wondering, from the standpoint of how Hazel works internally, which would be more efficient.

Being paperless, I scan a large number of documents. Once scanned, I want the documents to be renamed based on their content, and moved to the appropriate folder in a rather extensive hierarchy of folders that I have for my documents. I would guess there could be more than 50 different types of documents scanned on a regular basis that are sorted into 50 (or more) individual folders in the hierarchy.

So, my question is, which is most efficient:
-- Create 50 rules on the incoming scans folder, each of which does a rename and then moves the file to the correct target folder;
-- Create 50 rules that move the file to the target folder, and then have one rule on each folder that does the rename for that folder (which I prefer in that I it's conceptually easier to have a given folder handle the operations on the files that wind up in it);
-- Create one renaming rule which runs a script that uses variables that Hazel supplies based on the content search to then do the move to the target folder, and then let the target folder do the rename;
-- Something else?

I guess what I am asking is, how does Hazel perform when there are many rules on a given folder to be processed? Is it better to have less rules on a given folder and let Hazel handle more folders, or vice versa?

Thanks.

Re: Many rules on one folder, or one rule on many folders?

PostPosted: Tue Dec 27, 2016 2:20 pm
by Mr_Noodle
If you can do the third option, then that is preferable. If not, the maybe the second as it allows you to relocate everything by changing that first rule. Otherwise, I wouldn't worry too much about performance unless you actually notice it being a problem.