Kamil Bregula created AIRFLOW-6963:
--------------------------------------
Summary: Use low-level API for bulk insert
Key: AIRFLOW-6963
URL: https://issues.apache.org/jira/browse/AIRFLOW-6963
Project: Apache Airflow
Issue Type: Improvement
Components: scheduler
Affects Versions: 1.10.9
Reporter: Kamil Bregula
Hello,
When we add a very large number of records to the database, we should use a
different API.
bulk_save_objects() or bulk_insert_mappings() provide much more performance.
More information:
[https://docs.sqlalchemy.org/en/13/faq/performance.html#i-m-inserting-400-000-rows-with-the-orm-and-it-s-really-slow]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)