F
F
fenix19902017-08-05 19:05:31
PHP
fenix1990, 2017-08-05 19:05:31

When adding a large number of elements, the database gives an error 504 how to deal with it?

Such a question when adding a large number of objects more than 600, the database gives a 504 error, tell me how to deal with this ... I tried sleep (15) but it does not help. I don't understand what to do.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Konstantin Malyarov, 2017-08-05
@Konstantin18ko

Possible solutions: increase the value of the PHP max_execution_time parameter or lighten the script.
What is responsible for max_execution_time in 1C, so look for a similar function and try it.
UDP: Bitrix has this parameter. Increase it at least 2 times.

F
fenix1990, 2017-08-05
@fenix1990

Unfortunately, the script cannot be reduced because I don’t know how, but the value of max_execution_time already costs 120

N
Nikita Ermilichev, 2017-08-07
@Masas

Option 0: Optimize the script
Option 1: Process in parts
Option 2: Start processing with a console command
Option 3: Change the server configuration

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question