Unbounded Query (ARCH8061)
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
Key kotlin.orm.unbounded-query-no-limit · Severity warning · Category orm
Flags findAll()/SELECT-without-LIMIT reads that load a whole table into memory.
Incorrect
Section titled “Incorrect”val everything = orderRepository.findAll()Correct
Section titled “Correct”val page = orderRepository.findAll(PageRequest.of(0, 100))Page or limit the query; a table grows past what a single list can hold.