Configurable default page size
The default page size is hardcoded at 10000: (setf a:*default-page-size* 10000), the last line of lisp/data-ui.lisp, is unconditional, so every environment gets it. An app that can expect many more rows than that has no model setting to change it.
Ask: make the default page size configurable in the model.
First, a deep discussion of how the default page size variable is used, since that decides what "configurable" has to mean. What the code showed while this item was refiled (2026-11-26):
- The variable is the RBAC library's (
~/common-lisp/rbac,rbac.lisp:55, default 20): the default:page-sizeof its listing functions,list-rows,make-query, thelist-user-resource-*functions and the generated per-table list functions. Data UI raises it to 10000 for all of them at once. - This repo reads it in one place,
permitted-row-ids(lisp/backend.lisp), which pageslist-user-resource-ids-of-typeuntil a short page. There it is a chunk size, not a ceiling: a user who may read more than 10000 rows of a type costs one query per 10000 rows per call, and nothing is cut off. - Separately, 34 calls in
lisp/tolist-role-names,list-user-role-namesandlist-resource-role-namespass no:page-size, so each takes its page size from the same global, 10000 names to a page. - The request path is separate:
be-listand/api/listdefaultlimitto 20 and cap it at 200 (+max-limit+), and the frontend pages lists with its ownPAGE_SIZE = 20(web/src/App.tsx). *large-page-size*(lisp/data-ui.lisp, also 10000) has no other reference in this repo; seedocs/model-accessors.mdbefore calling it dead.
Questions for the discussion: which limit a large app actually hits (the 200 request cap, the 10000 chunk, or a role list past 10000 names); whether the value belongs in the model or as an explicit :page-size at the call sites, since the library reads one global; one number per app or per type; whether *large-page-size* stays.
- Slot
- 30200
- Status
- 10 Open
- Tags
- backend, compiler, setting
- Contributors
- Donnie, Sofia