Significant performance improvements across tagImagesWithPerfTags#720
Significant performance improvements across tagImagesWithPerfTags#720DogmaDragon wants to merge 3 commits into
Conversation
|
This pull request has been mentioned on Stash Forum. There might be relevant details there: https://discourse.stashapp.cc/t/tag-images-from-performer-tags/2059/3 |
There was a problem hiding this comment.
Bulk update has completely different purpose than the per image hook, Bulk update now inherits gallery attributes down to images, but that's a completely different plugin.
Maybe something got committed wrong by accident, but this is halfway to changing plugin scope completely.
| hook_id = hook["id"] | ||
| hook_type = hook.get("type", "") | ||
|
|
||
| if hook_type in ["Gallery.Update.Post", "Gallery.Create.Post"]: |
There was a problem hiding this comment.
Gallery hooks not in manifest, this will never be called.
| query["tags"] = {"value": [exclusion_marker_tag_id], "modifier": "EXCLUDES"} | ||
|
|
||
| try: | ||
| total_count = stash.find_galleries(f=query, filter={"page": 1, "per_page": 1}, get_count=True)[0] |
There was a problem hiding this comment.
This whole processAll() no longer inherits tags from performers to images, it is now a gallery to image inheritance logic, which completely changes the purpose of the plugin.
Related PR #718