Skip to content

Commit

Permalink
Document RepositoryListDefaultPageSize
Browse files Browse the repository at this point in the history
  • Loading branch information
strk committed Dec 31, 2017
1 parent 74b4deb commit e8772e3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions models/repo_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ import (
"github.com/go-xorm/builder"
)

// RepositoryListDefaultPageSize is the default number of repositories
// to load in memory when running administrative tasks on all (or almost
// all) of them.
// The number should be low enough to avoid filling up all RAM with
// repository data...
const RepositoryListDefaultPageSize = 64

// RepositoryList contains a list of repositories
Expand Down

0 comments on commit e8772e3

Please sign in to comment.