I want to save a bean object in while loop but the saving is too slow and it’s not complete, it saves just half, I don’t understand. I have 2017 recordings to save.
An alternative would be to check for existing records and skip those which have already been saved so that, at least, multiple runs will save more of the records.
I have /custom/modules/FOI_Evenements/logic_hooks.php file with an after_save logic hook :
<?php
// Do not store anything in this file that is not part of the array or the hook version. This file will
// be automatically rebuilt in the future.
$hook_version = 1;
$hook_array = Array();
// position, file, function
$hook_array['after_save'] = Array();
$hook_array['after_save'][] = Array(1, 'Creation Emplacement', 'custom/modules/FOI_Evenements/hook.php','Evenement', 'creationEmp');
?>
this code is supposed to create a new bean FOI_Emplacements_Evenements. and there is 2071 Emplacements_Evenements, but it saved just half of 2071, I don’t understand why it stopped ??
I change the set_limit_time, but there is the same problem.