Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-11863

Postgres COPY command

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      When writing data into Postgres using PutDatabaseRecord the time it takes to commit a large amount of messages (over 1 million) can take a substantial amount of time.  Even with tuning and finding a sweet spot of about 10k records it takes about a minute for the write and commit to happen.  When doing testing, it was found that the Postgres COPY command is about 10 times faster than an INSERT command.  There could be cases where the commit is not needed to be known and speed is all that matters.  

      It would be nice to include the ability to use COPY and/or have configurable transactions to help improve performance.

      Attachments

        Activity

          People

            mattyb149 Matt Burgess
            johnkuch John Kuchmek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: