Generate asynchronously
The user submits criteria, a background job queries in batches and writes a file, and the user is notified when it is ready. Show progress and let them leave the page.
Paginate by primary key cursor rather than large offsets. Deep pagination gets slower with every page.
Permissions must follow the data
The export scope must match what the list page shows. It is a real bug when the list is department-scoped but the export returns the whole company.
Exports are high-risk actions. Authorise them separately and log who exported what, when, and how many rows.
Sensitive fields
Mask phone numbers, ID numbers and bank cards unless there is a genuine need for plaintext, which should require approval.
Protect the file itself: time-limited signed download links, never a guessable public path.
FAQ
How many rows is large?
Tens of thousands is a reasonable threshold for async. If a synchronous request takes more than a few seconds, redesign it.
How long should export files live?
Set an expiry, for example seven days. Long retention consumes storage and increases exposure.
What if the customer wants everything?
Clarify purpose and scope, then grant according to permission. Data about other people cannot be included.
Related questions
Further reading
- System Redevelopment Service details
- Legacy system redevelopment handover checklist: five steps from inventory to launch
- What compliance checks are needed before AI-generated content goes live? A checklist to go through item by item
- Which scenarios are not suitable for enterprise AI transformation? Hold off on these types
- Should a Timed-Out API Call Be Retried
Sources & References
The following are public sources. Always check the latest requirements on the official authority or platform page.
