Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database: Thousands of tags with same name and count 0 in table tags #1707

Open
Samsonite121 opened this issue May 1, 2024 · 1 comment
Open

Comments

@Samsonite121
Copy link

I observed now that in the database in the table tags there are for common tags (like blonde, brunette, big tits usw.) thousands of entries for the same name of tag with count 0. I've already seen numbers like about 100000.
Seems like after scraping and counting and consolidating the tags additional not used tags with count 0 are not cleared from the database.
That's annoying because if you use such tags in filtered searches or saved lists as excluded tags it can extremly raise the search time.
I've one example in DeoVR that the display of the scenes raised in time from 7s to s.th. about 20s only why I added one of the tags in question to some list as excluded tag.

@theRealKLH
Copy link
Collaborator

In my DB I see multiple "cowgirl" with a count of 0. But there are 11737 scenes with that tag.
image
If I delete it (because of count = 0), how would I search for "cowgirl"?

You should probably be looking at scene_tags table instead of tags table. Example.. There are 2981 "cowgirl" entries in my tags table. 2980 of them have a count of 0. Here is snippet..
image
So only the first entry has a number (11741 scenes). "cowgirl" is tag # 5 in my DB. No clue what the other 2980 entries are for (not trying to spelunk this one). However if I go to the scene_tags table, there are 14448 entries (each a different scene) pointing to tag # 5 (cowgirl). Snippit below (and before you ask I don't know why I have 3 different totals-grin)...
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants