Help: Large CSV Export Hitting Memory Limits
Constraints:
- Convex action memory limit: 64 MB
- Convex query read limit: 16 MB
What I've Tried:
1. Workflows
- Hit 1 MB journal size limit even with batching
- Too much state accumulation
2. Scheduled Actions with Chunking
- Successfully processes data in 500-record chunks
- Stores each chunk as separate file in R2
- BUT: Combining chunks into final CSV (by re-downloading chunks from R2 to process the combination into one CSV file) hits 64 MB memory limit
- Even with incremental combining (download chunk, append, re-upload)
Current Approach:
Are there any other patterns for handling workloads similar to large exports in Convex?
