Answers.Body: <p>After a lot of testing, I ended up using the <a href="https://civicrm.org/extensions/api-csv-import-gui" rel="nofollow noreferrer">api csv import</a> extension. Not perfect but at least helped me do the job.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-06-17T08:08:31.967Z
Answers.LastActivityDate: 2022-06-17T08:08:31.967Z
Answers.UserDisplayName: Guillaume Sorel
Answers.Body: <p>In the very short term, the <a href="https://civicrm.org/extensions/advanced-import" rel="noreferrer">advimport</a> extension might help: it adds a button to the core contact import to &quot;process with advimport&quot;, and it uses its queue for processing. A bit slower, but it won't crash.</p>
  <p>In the long term, this is something that a few folks such as Eileen and Tim have been working on improving in core, so hopefully somewhere around CiviCRM 5.51 or 5.52, core import should be much more efficient (<a href="https://github.com/civicrm/civicrm-core/pull/23669" rel="noreferrer">PR#23669</a>, for example). There are a few <a href="https://github.com/civicrm/civicrm-core/pulls" rel="noreferrer">open PRs</a> waiting review, if you are interested to help speed things up.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-06-08T11:47:43.553Z
Answers.Text: definitely worth giving a try! thanks Mathieu
Answers.UserDisplayName: Guillaume Sorel
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-06-07T17:35:19.130Z
Answers.LastActivityDate: 2022-06-07T17:35:19.130Z
Answers.UserDisplayName: bgm
Body: <p>I need to import a file with individuals (round 5000) and organizations (round 2000), relationships between them and all of them being added to group.</p>
  <p>What would you advice: api import? front-end with server settings to optimize time-outs? SQL injection?</p>
  
Tags: <import>
Title: How to import a lot of contacts (above 5000)
ThreadText: # How to import a lot of contacts (above 5000)
  
  (Asked by: username_0 on 2022-06-07)
  
  I need to import a file with individuals (round 5000) and organizations (round 2000), relationships between them and all of them being added to group.
  
  What would you advice: api import? front-end with server settings to optimize time-outs? SQL injection?
  
  **Tags:** import
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2022-06-17. Score: 0 | Accepted answer
  
  After a lot of testing, I ended up using the [api csv import](https://civicrm.org/extensions/api-csv-import-gui) extension. Not perfect but at least helped me do the job.
  
  
  ---
  
  ### Answer by username_1 on 2022-06-07. Score: 5
  
  In the very short term, the [advimport](https://civicrm.org/extensions/advanced-import) extension might help: it adds a button to the core contact import to "process with advimport", and it uses its queue for processing. A bit slower, but it won't crash.
  
  In the long term, this is something that a few folks such as Eileen and Tim have been working on improving in core, so hopefully somewhere around CiviCRM 5.51 or 5.52, core import should be much more efficient ([PR#23669](https://github.com/civicrm/civicrm-core/pull/23669), for example). There are a few [open PRs](https://github.com/civicrm/civicrm-core/pulls) waiting review, if you are interested to help speed things up.
  
  > **Comments:**
  > **username_0**: definitely worth giving a try! thanks Mathieu  
  
  ---
  
  