Skip to content

Unbounded Query (ARCH8061)

Key kotlin.orm.unbounded-query-no-limit · Severity warning · Category orm

Flags findAll()/SELECT-without-LIMIT reads that load a whole table into memory.

val everything = orderRepository.findAll()
val page = orderRepository.findAll(PageRequest.of(0, 100))

Page or limit the query; a table grows past what a single list can hold.