You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am interested in your projects and your style. I want to integrate them into my project. However, after using it, I noticed one problem. You have mappings and projections, but JPAStreamer selects all fields instead of just the necessary ones. For example:
`public class University { @id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String name;
private String city;
private String country;
}
But generated SQL: select u1_0.id, u1_0.city, u1_0.country, u1_0.name from university u1_0
In my case, queries like this have a negative impact on performance.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am interested in your projects and your style. I want to integrate them into my project. However, after using it, I noticed one problem. You have mappings and projections, but JPAStreamer selects all fields instead of just the necessary ones. For example:
`public class University {
@id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String name;
private String city;
private String country;
}
jpaStreamer.stream(University.class)
.map(University$.name)
.forEach(System.out::println);
`
But generated SQL:
select u1_0.id, u1_0.city, u1_0.country, u1_0.name from university u1_0
In my case, queries like this have a negative impact on performance.
Beta Was this translation helpful? Give feedback.
All reactions