Break processing into batches of X. ( in the final version x will be 500 but for testing it should just be set to 5 )
Use ajax to process and save/update file into /uploads/leads/csv/ folder.
Shows progress in UI
After processing is finished it prompts a download location with a message letting the user know a this file is also available in wp-content/uploads/leads/csv/
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/35024215-improvement-bulk-actions-export-csv?utm_campaign=plugin&utm_content=tracker%2F260752&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F260752&utm_medium=issues&utm_source=github).
Our current CSV export system will break when trying to export an amount of leads over 800+, depending on server settings.
Example of a Lead export.
http://screencast.com/t/H76uYbbLN
goals
Important code locations
Where we are currently processing and generating CSV: https://github.com/inboundnow/leads/blob/develop/classes/class.lead-management.php#L798-L869
Where appropriate JS should go https://github.com/inboundnow/leads/blob/develop/assets/js/management/admin.js
Where Ajax Processing should go https://github.com/inboundnow/leads/blob/develop/classes/class.lead-management.php#L54
Further instructions
Optimistic time for completion: 8-15 hours.