Skip to content

[Backend] Bulk Operations Endpoint **Difficulty**: Intermediate | **Area**: apps/public-api #101

@yash-pouranik

Description

@yash-pouranik

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

  • Ability to insert 100+ records in a single request.
  • Proper error reporting (returning which indices failed validation).
  • Rate limits and database quotas are correctly enforced.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions