From e8772e3ae7c260e280dfed75091e6158eea7e988 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Sun, 31 Dec 2017 15:16:06 +0100 Subject: [PATCH] Document RepositoryListDefaultPageSize --- models/repo_list.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/models/repo_list.go b/models/repo_list.go index 72a433e6fb361..bc9b831d30413 100644 --- a/models/repo_list.go +++ b/models/repo_list.go @@ -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