Files
wekan/docs/Features/Admin-Panel/Problems/Performance.md
T
Lauri Ojansivu c66af0e134 Docs: Admin Panel / Problems (Files to Performance): what each feature is, how to use it, how its numbers are calculated, how it works, and its commits.
File status, Filesystem integrity, Impersonation Report, Instrumentation,
Large boards, Login problems, Migrations, Offices, Password length and
Performance now each say what the feature is, where to read more, how to use
it, how its numbers are calculated, how it is implemented, and link the
commits that built it.

Corrected from the code: the file status scan limits are 100,000 records per
collection and 250,000 versions, not 20,000; the snap's FerretDB default is
OpLog with polling as the fallback, not polling only; the Password length
table has 25 rows a page.

Thanks to xet7 !
2026-11-22 17:59:12 +02:00

4.7 KiB

Admin Panel / Problems / Performance

What it is

How WeKan loads a board's cards. Address: /admin/problems/performance. Site administrators only. The pane is a description, with nothing to click or save: it sits beside Speed, Tests and CPU usage because it is what decides how much a big board costs to open.

Read more

How to use it

Read how cards load

  1. Sign in as a site administrator and open Admin Panel → Problems → Performance.
  2. Read Card loading. There is no setting in the Admin Panel: card loading is automatic, per board, by size.

Force a mode (operators)

  1. Set CARDS_LOADING and, optionally, CARDS_LOADING_LAZY_THRESHOLD in the server environment (Snap: sudo snap set wekan cards-loading=...).
  2. Restart WeKan and reload open boards.
Variable Values Default
CARDS_LOADING auto, all or lazy; anything else is auto auto
CARDS_LOADING_LAZY_THRESHOLD a card count; 0 makes every auto board lazy; an invalid or negative value is the default 500

See which mode a board uses

  • The board's Statistics view shows the card loading mode in effect, with "(Automatic (lazy only for big boards))" when it was chosen by auto.

How the numbers are calculated

From models/lib/cardsLoading.js:

  • A board with more than the threshold of cards (default 500) loads lazily; a board with 500 cards or fewer loads every card (effectiveBoardCardsMode).
  • The threshold is CARDS_LOADING_LAZY_THRESHOLD parsed as a whole number; unset, invalid or negative gives 500 (cardsLoadingLazyThreshold).
  • A lazy list shows 10 cards at first and 10 more each time it is scrolled to the end (client/components/lists/listBody.js).

How it works in WeKan

Card loading is automatic, per board, by size (models/lib/cardsLoading.js):

  • a board with more than the threshold of cards (default 500) loads lazily: each list loads only the cards that are visible (infinite scroll) and the counts come from the server;
  • a smaller board loads every card, for the simplest and fully featured behaviour.

all sends every non-archived card of a board to each viewer; filtering, search, counts, sorting and drag and drop then run in the browser. lazy sends only the visible window of each list, through a windowed publication per list (server/publications/cardsWindow.js).

Commits