I want to know if it is considered correct / safe to pass a list of about 10000-20000 objects (f.e. Long or String) to an IN query by using a spring-data repository interface.
The class and method could look like this:
@Repository
public interface TransactionsRepository extends JpaRepository<TransactionsEntity, Long> {
List<TransactionsEntity> findByCustomerIdIn(List<Long> customerIdList);
}
Maybe there is another way of doing such query more efficiently?