bbovenzi opened a new pull request, #76932:
URL: https://github.com/apache/airflow/pull/76932

   Follow up of https://github.com/apache/airflow/pull/76600 to improve audit 
log performance by moving to cursor based pagination like we do for the dag 
runs table
   
   Also fixed a bug where the Date filter on the audit log said Logical Date 
and not "When" like the column is labeled.
   
   <img width="727" height="643" alt="Screenshot 2026-11-11 at 12 49 00 PM" 
src="https://github.com/user-attachments/assets/42af1502-a860-434e-86d0-3d6175567ba4";
 />
   <img width="1190" height="1395" alt="Screenshot 2026-11-11 at 12 49 07 PM" 
src="https://github.com/user-attachments/assets/255cf941-5e5f-4de2-a1a5-8fd3db4a95d1";
 />
   
   
   | Case | Rows matched | Before (offset + count) | After (cursor) | Speedup |
   |---|---:|---:|---:|---:|
   | Audit Log, page 1 | 1,000,492 | 149 ms | 26 ms | 5.7× |
   | Audit Log, page 10,001 | 1,000,492 | 466 ms | 25 ms | 18.4× |
   | Dag audit tab, page 1 | 20,000 | 116 ms | 18 ms | 6.5× |
   | Event = `failed`, page 1 | 142,857 | 111 ms | 17 ms | 6.7× |
   | Event contains `fail`, page 1 | 142,857 | 239 ms | 19 ms | 12.9× |
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   <!--
   If generative AI tooling has been used in the process of authoring this PR, 
please
   change below checkbox to `[X]` followed by the name of the tool, uncomment 
the "Generated-by".
   -->
   
   - [x] Yes (please specify the tool below)
   Claude Opus 5.5
   
   <!--
   Generated-by: [Tool Name] following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   -->
   
   ---
   
   * Read the **[Pull Request 
Guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#pull-request-guidelines)**
 for more information. Note: commit author/co-author name and email in commits 
become permanently public when merged.
   * For fundamental code changes, an Airflow Improvement Proposal 
([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvement+Proposals))
 is needed.
   * When adding dependency, check compliance with the [ASF 3rd Party License 
Policy](https://www.apache.org/legal/resolved.html#category-x).
   * For significant user-facing changes create newsfragment: 
`{pr_number}.significant.rst`, in 
[airflow-core/newsfragments](https://github.com/apache/airflow/tree/main/airflow-core/newsfragments).
 You can add this file in a follow-up commit after the PR is created so you 
know the PR number.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to