Skip to content

[Feature]: Investigate using ResponseModel DTOs directly in database queries to eliminate intermediate Entity DTO mapping #77

@PapLabros

Description

@PapLabros

Describe the solution you'd like

We should investigate the feasibility of retrieving data directly as ResponseModel DTOs from the database when handling GET endpoints, instead of first loading Entity DTOs and then mapping them to ResponseModel DTOs.

This change would allow the database (via ORM projection) to directly project query results into ResponseModel DTOs, eliminating the need for AutoMapper during GET requests and bypassing property getter logic in Entity DTOs — which often introduces unnecessary computation.

If feasible, this approach could significantly improve performance, reduce memory usage, and simplify the data retrieval pipeline.

Alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestperformanceIssues that provide great performance related benefitsserverIssues related to the server

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions