-
Notifications
You must be signed in to change notification settings - Fork 331
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
Bugfix to PR 4046: Repaired query #4049
Conversation
Ok, the reason why I changed the query is because I want to get rid of the This is valid but it could even be simplified by getting rid of the |
Edit: This function currently has two parameters that had been used before. The query could be simplified by omitting the |
I know why you changed it, I'm just saying it can be changed further. |
Yeah there is much where we can simplify the database structure. |
BTW: Additionally we are having several unneeded "id" fields (as auto increment) in many tables. |
Indeed, I'm not done with my database assessment, but it definitely is on the list. |
This is complicated since we have to replace the primary fields which will sometimes make problems since we will have duplicated data - and Oracle's MySQL is a little bit hypersensitive concerning this. (MariaDB is more insensitive) |
Duly noted, we'll have to dedupe the tables first, then move the primary key, then remove the columns. |
We already are having a function that replaces duplicates - but it does work only well with older MySQL and MariaDB. |
This repairs the query in the function
getByContactIdForUserId
of PR #4046