View Single Post
Old 03-06-2019, 10:45 PM   #406
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Quote:
Originally Posted by ilovejedd View Post
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')
DaltonST is offline   Reply With Quote