hydrusnetwork / hydrus

A personal booru-style media tagger that can import files and tags from your hard drive and popular websites. Content can be shared with other users via user-run servers.
http://hydrusnetwork.github.io/hydrus/
Other
2.35k stars 154 forks source link

remove orphaned tags #1565

Open ivcat opened 3 months ago

ivcat commented 3 months ago

orphaned tags (tags that aren't associated with any files) remain in the database indefinitely without the client removing them, making the database massive just to save a bunch of tags that are useless and no longer used. please add the ability to automatically or manually remove them

bbappserver commented 2 weeks ago

Because of the way the PTR protocol works definitions must exist indefinitely (mappings associate tagIds to hashes, not tage names to hashes). This might work just fine for local tags or peding tags not previously in the definition table when they are deleted, and TBH I thought that's how it already works for local tsgs.