Algolia reindex script takes a long time

Environment:
Django version: Django==2.2.8
Algolia Django integration version: algoliasearch-django==1.7.1 (https://github.com/algolia/algoliasearch-django)
Algolia Client Version: algoliasearch==1.20.0
Language Version: english

Issue

When running the reindex script, I notice the following happening:

  • 5k records pushed to a _tmp index
  • There are more than 5k records, but only 5k is added. Why is that?
  • The real index configured gets added records very very slowly (we are talking like 1 a minute)

Is there something wrong with my setup?