Description
To support high-throughput applications and data migrations, we need dedicated bulk endpoints to reduce the number of HTTP round-trips.
Technical Context
Update apps/public-api/src/controllers/data.controller.js and routes. Use MongoDB's insertMany and bulkWrite for performance.
Tasks
- Create
POST /api/data/:collectionName/bulk for multiple inserts.
- Implement validation for arrays of objects.
Acceptance Criteria
Description
To support high-throughput applications and data migrations, we need dedicated bulk endpoints to reduce the number of HTTP round-trips.
Technical Context
Update
apps/public-api/src/controllers/data.controller.jsand routes. Use MongoDB'sinsertManyandbulkWritefor performance.Tasks
POST /api/data/:collectionName/bulkfor multiple inserts.Acceptance Criteria