junyeong0619 commented on PR #66022:
URL: https://github.com/apache/airflow/pull/66022#issuecomment-4378173244

   Hi @amoghrajesh, thanks for the feedback! I agree the lazy iterator
   pattern scales much better for large variable sets. I've updated the
   PR to use `Variable.keys(prefix=...)` returning a `list[str]` of keys
   instead, and the user can call `Variable.get(key)` for the values they
   actually need:
   
       for key in Variable.keys(prefix="team_a_config_"):
           val = Variable.get(key)
   
   The endpoint is now `GET /variables/keys?prefix=` returning just keys.
   Would appreciate another look when you have time!


-- 
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