5.4 million records to be added - super slow

Your software
My PHP version is: 7.4
My Database type and version is: maria 10.4

Your problem
slow uploading of records - 50,000 per a day only list size with emails is 5.4 million

how can Import records in a faster way into the database. we are using 10,000 email segments.