gh-ost icon indicating copy to clipboard operation
gh-ost copied to clipboard

feat concurrent chunk data

Open shaohk opened this issue 1 year ago • 3 comments

Description

This PR Supports concurrent copying of chunk blocks during each time slice of copying the existing data.

In case this PR introduced Go code changes:

  • [ ] contributed code is using same conventions as original code
  • [ ] script/cibuild returns with no formatting errors, build errors or unit test errors.

shaohk avatar Mar 15 '24 07:03 shaohk

MySQL insert ... select ... does not permit concurrent.

https://dev.mysql.com/doc/refman/5.7/en/insert-select.html

shaohk avatar Mar 19 '24 07:03 shaohk

When the unique index used for copying blocks includes an auto-increment column, concurrency is blocked on the auto-inc lock. If the unique index used does not include an auto-increment column, concurrency can proceed.

shaohk avatar Mar 20 '24 02:03 shaohk

May I ask when this feature will be reflected in the new version

xiaoxuanfeng avatar Aug 18 '25 08:08 xiaoxuanfeng