bugraoz93 commented on issue #42560:
URL: https://github.com/apache/airflow/issues/42560#issuecomment-2470921805

   > Most of these resources `Connection` `Pool` `Variable` already have a 
`POST` endpoint to create 1.
   > 
   > The CLI can either re-use with a loop and async calls to create multiple 
of them quickly as needed. (which can be enough at this point). Or we can 
develop a `bulk` insert endpoint, not sure if this is needed.
   
   In that sense, those endpoints are indeed not necessary. I agree that even 
hundreds of calls per second shouldn’t be an issue for FastAPI. However, for 
better exception handling and an improved user experience, I’d prefer to handle 
all inserts in a single request. Otherwise, if the request fails for multiple 
entries, users would need to split the file, identify each issue, and then 
retry each entry individually or through the UI/CLI as a single resource.
   
   Let’s proceed with implementing the bulk insert endpoints, as it seems 
you’re not strictly opposed.


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