pramoth / specification-with-projection

Support projections with JpaSpecificationExecutor.findAll(Specification,Pageable) for Spring Data JPA
MIT License
164 stars 56 forks source link

Is query execution optimezed? #12

Closed anat0lius closed 5 years ago

anat0lius commented 5 years ago

I'm wondering if this library just maps the result set to the desired projection or is the projection already applied at query execution?

pramoth commented 5 years ago

It just maps the result no optimized are applied. You may use EntityGraph to do optimize.