Using Pageable and EntityGraph, entire collection is loaded from database [DATAJPA-1677] #1976
Labels
in: core
Issues in core support
status: feedback-reminder
We've sent a reminder that we need additional information before we can continue
status: waiting-for-feedback
We need additional information before we can continue
type: bug
A general bug
Christoffer opened DATAJPA-1677 and commented
I noticed some weird behavior when I added an
EntityGraph
to myfindAll
repository method:When I use an
EntityGraph
, that specifies an attribute node on a field that uses a@OneToMany
relationship, the entire collection will be loaded from the database (however, thePage
object only contains my 25 limit objects).No limit is added to the SQL statement
The number of rows loaded ~= playlists + items (which I believe should be ~= 25 + items)
The same thing does not happen if I add a
@OneToOne
or@ManyToOne
field to my attribute nodes.Highly simplified code from my project:
Affects: 2.2.4 (Moore SR4)
The text was updated successfully, but these errors were encountered: