Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

dumpling should handle cases that estimated count are not accurate #101

Open
lichunzhu opened this issue Jun 15, 2020 · 0 comments
Open
Labels
priority/P2 Medium priority issue

Comments

@lichunzhu
Copy link
Contributor

Now dumpling computes estimatedChunks through tidb estRows.

	// every chunk would have eventual adjustments
	estimatedChunks := count / conf.Rows
	estimatedStep := (max-min)/estimatedChunks + 1

When table is not created but not used in tidb, estRows will be 10000. Then estimatedChunks will be very large if conf.Rows is not big. Dumpling may dump many sql files which is not expected.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority/P2 Medium priority issue
Projects
None yet
Development

No branches or pull requests

3 participants