diff --git a/deb/publish.go b/deb/publish.go index d86409b1..d298abe2 100644 --- a/deb/publish.go +++ b/deb/publish.go @@ -599,6 +599,13 @@ func (p *PublishedRepo) Publish(packagePool aptly.PackagePool, publishedStorageP } } + // Start a db batch. If we fill contents data we'll need + // to push each path of the package into the database. + // We'll want this batched so as to avoid an excessive + // amount of write() calls. + tempDB.StartBatch() + defer tempDB.FinishBatch() + for _, arch := range p.Architectures { if pkg.MatchesArchitecture(arch) { var bufWriter *bufio.Writer