Quote:
Originally Posted by ilovejedd
Yeah, I run them one by one at the moment. I was wondering what the order was for the optimal sequence.
|
This is the theoretical optimal sequence that implicitly assumes several conditions that may or may not be true for an individual user. That means that each user should test this predefined sequence, and if it can be improved, use their own empirically determined sequence.
Example: the predefined sequence may need to be executed several times in a row. Sort of like having to run a Windows registry cleaner multiple times to get everything due to predecessor-successor relationships.
Code:
OPTIMAL_SEQUENCE = "All Tag Rules Tables in Optimal Sequence"
if ruleset == OPTIMAL_SEQUENCE:
self.ts_scrub_tag_metadata_using_ruleset(TAG_SPLITTING_RULES,scope='optimal')
self.ts_scrub_tag_metadata_using_ruleset(TAG_CAPITALIZATION_RULES,scope='optimal')
self.ts_scrub_tag_metadata_using_ruleset(TAG_STRING_REPLACEMENT_RULES,scope='optimal')
self.ts_scrub_tag_metadata_using_ruleset(TAG_RULES,scope='optimal')
self.ts_scrub_tag_metadata_using_ruleset(TAG_COMBINATION_RULES,scope='optimal')
self.ts_scrub_tag_metadata_using_ruleset(TAG_PREFIX_SUFFIX_RULES,scope='optimal')
else:
self.ts_scrub_tag_metadata_using_ruleset(ruleset,scope='single')