This is standard way to limit results size without writing dialect. I'd like to prepare PR if the team accepts proposal.