Skip to content

Spring Batch 5 with MySQL Replication #4638

Closed Answered by fmbenhassine
valliappanmvi asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for the link! Indeed, it is a best practice to define a primary key.

We can create primary key for the table, but was wondering how the table doesn't cater for such requirement.

As mentioned above, that table does not define a primary key because records represent value objects. But you can define one when you use MySQL replication.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@valliappanmvi
Comment options

@fmbenhassine
Comment options

Answer selected by fmbenhassine
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
status: waiting-for-reporter Issues for which we are waiting for feedback from the reporter
2 participants