Timeout on PHP addObjects with over 3000 objects

Hi,

I have a job that suddently gives a 504 Gateway timeout, i have tested and found out that its the PHP function from Algolia addObjects when im having over 2000 objects that gives the following in nginx error log:

(110: Connection timed out) while reading response header from upstream

Anybody having same problem and have a solution?

Hi,

Is it possible to add smaller batches? Something like 500-1000 objects per batch?

Hi @robert.mogos

Ill try to create smaller batches and let you know.

Hi @robert.mogos

It found the issue, it was a execution problem even though i had changed it.

Thx for the help.