AnsweredAssumed Answered

Saving of bean object too slow and not complete

Question asked by Amel Itachi on May 21, 2015
Latest reply on May 21, 2015 by Shijin Krishna
Hello,

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.

Someone can help me ?? :( :( :(


This is my code :


while($row=$db->fetchByAssoc($result))
                    {                
                        $rel_emp =new FOI_Emplacements_Evenements();
                        $rel_emp->name=$row["nom_emp"]."-".$bean->name;
                                  $rel_emp->foi_evenements_foi_emplacements_evenements_3foi_evenements_ida=$bean->id;
                        $rel_emp->foi_evenem68b8nements_idb=$row["id"];
                        $rel_emp->categorie_c="normal";
                        $rel_emp->disponibilite_c="03";
                        $rel_emp->rue_c=$row["nom_voie"];
                        $rel_emp->save();
                        //unset($rel_emp);
                    }

Outcomes