I am developing an application with Angular and Spring Boot. I have a model User which contains for example 10 fields. For a specific need, the frontend app needs just 3 or 4 fields(for example firstName, lastName, position and email).
In this case, what is the best method should I follow ? (Performances)
1- I create another class which contains 4 fields and use it to send the users list.
2- I send all users with 10 fields ?
If there is another way or method, please share it.