In the loop, the array is processed, sparse before it from xml. The data is either updated or added to the database. So, if a memory limit happens, then all the data that was affected before this is deleted. From three tables. Why does this happen? Yii 1.1.16
- one1. Are you sure that they disappear, and are not recorded at the end of the script, which does not always modify its own? 2. Could it be that at the beginning of the script you open a transaction in the database? - etki
- 1. Data can already be added earlier, but still disappear. 2. It is unlikely that she herself opens. And if you break the script from PMA, then the data will remain. It is the affected data that disappears, and it is with the memory limit. - MrGaliev
- code in the studio. - Artem
- Do you somehow check the request for successful processing? errors? affected_rows? insert_id? And yes, do you use transactions? What kind of database? What is the database schema? - Rang
- In addition, tell me how to do better :) github.com/iljas-galiev/catalog/blob/master/YmlModule.php - MrGaliev
|