1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-23 10:48:37 +00:00

Detect migrating batch size (#7353)

* Make migrating batch size as configurable

* detect different table batch insert size and remove config item

* remove unrelated changes
This commit is contained in:
Lunny Xiao
2019-07-07 03:24:50 +08:00
committed by techknowlogick
parent ef57fe4ae3
commit 337d6915ff
4 changed files with 73 additions and 17 deletions

View File

@@ -7,6 +7,7 @@ package base
// Uploader uploads all the informations of one repository
type Uploader interface {
MaxBatchInsertSize(tp string) int
CreateRepo(repo *Repository, opts MigrateOptions) error
CreateMilestones(milestones ...*Milestone) error
CreateReleases(releases ...*Release) error