oliver-zehentleitner / maity

hub: chunk the public render IN lists that still read every member, owner or agent in one statement

Sign in to report

tsk-0hkffn15t8af Open

Follow-up to tsk-8bckx5n50193 (PR 2383), from its reviews. Two whole-render lookups still pass one IN list with every id: the members and owners read in public_members.members (the human read near public_members.py line 93) and the all-agents memberships read in public_people.listed_agents (near public_people.py line 146). The helpers that 2383 added split their inputs with chunks.CHUNK; these two predate it and do not. On SQLite a project or a person with more ids than the bind limit would fail the render. Done when: both reads go through chunks.CHUNK as the new helpers do, the rendered bytes stay identical (test_public_render_cost digests), and a test renders a page past one chunk. Small; no behaviour change.