Closed kaladay closed 4 months ago
Doing a findAll() and then counting the length of the array is highly enefficient. Using findAll() slowing down the generation of large data sets for testing. Change the code to an SQL count via the JPA count() method.
findAll()
count()
Doing a
findAll()
and then counting the length of the array is highly enefficient. UsingfindAll()
slowing down the generation of large data sets for testing. Change the code to an SQL count via the JPAcount()
method.