Finish generating the export in a private temporary file before sending a success response. Keep memory bounded, send the complete length, and discard staged data when the database read fails.
Keep group client tables and bulk requests bounded with paged queries, frozen selections, and a streamed subscription export. Reuse existing bulk mutations and preserve the explicit-email contracts.