Uploaded image for project: 'Apache Airflow'
  1. Apache Airflow
  2. AIRFLOW-6963

Use low-level API for bulk insert

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.10.9
    • Fix Version/s: None
    • Component/s: scheduler
    • Labels:
      None

      Description

      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

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kamil.bregula Kamil Bregula
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: