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

Tweaks #159

Closed
wants to merge 2 commits into from
Closed

Tweaks #159

wants to merge 2 commits into from

Conversation

unglaublicherdude
Copy link
Member

The Query is much faster (+15 minutes compared to under a second) with this cast and the cast to unsigned should always result in a biging.

https://www.w3schools.com/sql/func_mysql_cast.asp

@unglaublicherdude unglaublicherdude marked this pull request as draft November 12, 2024 16:12
https://www.w3schools.com/sql/func_mysql_cast.asp

The old query took more than 15 minutes on a database with 100.000 files. The new takes 0.137 sec
@unglaublicherdude
Copy link
Member Author

Converted back to draft. I had still a version locally where I use join instead of left join.

@GermanCoding
Copy link
Contributor

Please check if this works as intended and supports all platforms (i.e. does the unsigned cast work on postgres as well?). We also optimized this exact query in #150, is it still slow?

@unglaublicherdude
Copy link
Member Author

will close this issue. the problem was, that in our presentation setup, the container was missing indexes.

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

Successfully merging this pull request may close these issues.

3 participants