Mautic Community Forums

Bulk-Import Contacts Via REST API

I am trying to add/edit contacts via The REST API. I have a large number of contacts that should be added or updated. The Add Contact API is too slow to insert that large number which may reach 50000 or more. Is there any method to automatically bulk-import those contacts in a manner similar to Import CSV.

I am trying to add/edit contacts via The REST API. I have a large number of contacts that should be added or updated. The Add Contact API is too slow to insert that large number which may reach 50000 or more. Is there any method to automatically bulk-import those contacts in a manner similar to Import CSV.

The API is slow and good for about a user every 4 seconds or so…

CSV import is good for about 3-4 users per second, but I have found after you get 200k contacts in your database it slows right down.

I am not sure if there is a problem with my setup but so far I am not to impressed with the importing.

I have 2cpu 4gb ram ec2 instance and a 2cpu 4gb dB server and all I am doing is imports and I am getting 20% utilization on both doing 2 imports

Hopefully someone with a little background chimes in.