summaryrefslogtreecommitdiffstats
path: root/modules/migrations/base/uploader.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-07-07 03:24:50 +0800
committertechknowlogick <techknowlogick@gitea.io>2019-07-06 15:24:50 -0400
commit337d6915ff8967637ff515108612c3a7a4f51585 (patch)
tree702e0f4d310fa03a635c27ab0e7c1702aac3196d /modules/migrations/base/uploader.go
parentef57fe4ae3c517a0bb10b81a641fb76976f404d3 (diff)
downloadgitea-337d6915ff8967637ff515108612c3a7a4f51585.tar.gz
gitea-337d6915ff8967637ff515108612c3a7a4f51585.zip
Detect migrating batch size (#7353)
* Make migrating batch size as configurable * detect different table batch insert size and remove config item * remove unrelated changes
Diffstat (limited to 'modules/migrations/base/uploader.go')
-rw-r--r--modules/migrations/base/uploader.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/migrations/base/uploader.go b/modules/migrations/base/uploader.go
index 9d2fd2af6a..8c1d649229 100644
--- a/modules/migrations/base/uploader.go
+++ b/modules/migrations/base/uploader.go
@@ -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