mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 18:10:06 -05:00
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 !
4.7 KiB
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
- Lazy loading and Infinite scrolling - what a lazily loaded list does.
- WeKan: Large-Boards.md - what a large board loads, and the measurements behind the threshold; Speed and CPU usage.
How to use it
Read how cards load
- Sign in as a site administrator and open Admin Panel → Problems → Performance.
- Read Card loading. There is no setting in the Admin Panel: card loading is automatic, per board, by size.
Force a mode (operators)
- Set
CARDS_LOADINGand, optionally,CARDS_LOADING_LAZY_THRESHOLDin the server environment (Snap:sudo snap set wekan cards-loading=...). - 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_THRESHOLDparsed 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).
- server/cards-loading.js reads the
environment variables and passes them to the browser as
Meteor.settings.public.cardsLoadingandcardsLoadingLazyThreshold. - client/lib/lazyCards.js decides per
board in the browser, from the
boardCardLoadingModesthe server publishes, and reads the server-side counts. - The pane is the
featuresPerformancetemplate in client/components/settings/adminProblems.jade; its text is thecards-loading-descriptiontranslation. - Tests: tests/cardsLoading.test.cjs and tests/playwright/specs/large-board-lazy-loading.e2e.js.
Commits
- Snap defaults cards-loading to auto, like every other platform
- The Problems route and template are named as the menu names them
- Adaptive card loading: lazy only for big boards, no admin toggle
- Unit and negative tests for lazy loading
- Accurate card counters and WIP limits with lazy loading
- Lazy card loading in the browser, and its Admin Panel section
- Lazy card loading on the server: CARDS_LOADING and windowed publications