LIMIT OFFSET versus keyset pagination for large Airflow SQL queries
The goal is to page through a multi-million-row relational table from an Airflow task without missing or duplicating rows, while keeping query latency predictable across retries. SqlSensor and SqlOperator execute user-written SQL, so the pagination idiom must live in the query itself. LIMIT with OFFSET is simple to implement, but scan cost grows as the offse