avoid too many subqueries are merged in memory with findByProductIdsUsername