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

Reverted JoinListStore#internalAdd to non bulk shift insertion strategy to avoid issue #464 #465

Open
wants to merge 1 commit into
base: 5.2
Choose a base branch
from

Conversation

chrisco484
Copy link
Contributor

@chrisco484 chrisco484 commented Apr 19, 2023

Also: Fixed potential typo in passing shiftStmt instead of shiftBulkStmt in AbstractlistStore - did not resolve issue #464

This only reverts the bulk shift for 1-m relationships implemented via join tables as they are the only ones exhibiting the exception in MySQL.

Bulk shifts for 1-m relationships implemented by FK are still in place.

… AbstractlistStore - did not resolve issue datanucleus#464

Reverted JoinListStore#internalAdd to non bulk shift insertion strategy and the exception of issue datanucleus#464 no longer occurs.
@chrisco484
Copy link
Contributor Author

Note: this change is on the 5.2 branch only.

I'm not sure if Master branch exhibits the same issue with MySQL as I haven't had the time to install JDK 11 to test 6.x

@andyjefferson
Copy link
Member

I wont be ripping out code just because some corner case has some issue. You could provide a PR that allows a field to be marked with some metadata extension NOT to do bulk shift with that field perhaps ... that way the majority get the benefit of that code, and those who don't want it can opt out

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.

2 participants