I have billions of rows in SQL Server tables and I'm using Nifi to load those rows into MySQL. I tried using PutSQL and PutDatabaseRecord both are satisfying the requirement, however they are taking quite long time to load the into MySQL(100k records per minute, for 1 billion it might be 1000+ minutes) as they are doing it record by record. Do we have any bulk load option to load the AVRO/CSV flowfiles into MySQL in Nifi.
Here is my Flow :
ListDataBaseTables -> GenerateTableFecth(partition size= 50k records(flowfile have 50k records)) -> Execute SQL -> ConvertRecord(Avro to CSV) -> PutSQL
ListDataBaseTables -> GenerateTableFecth(partition size= 50k records) -> Execute SQL(Avro) -> PutDatabaseRecord.
Any suggestions please.