This is different from LIMIT in RDBMS
Wouldn’t this pattern solve the complexity you are talking about?