Perf: Avoid makign a "desc table" for each row we import (for this we
are using a global cache array).
This commit is contained in:
parent
2cced0bf43
commit
dc7db87ee5
@ -1307,7 +1307,10 @@ if ($step == 5 && $datatoimport)
|
|||||||
$result=$obj->import_open_file($pathfile,$langs);
|
$result=$obj->import_open_file($pathfile,$langs);
|
||||||
if ($result > 0)
|
if ($result > 0)
|
||||||
{
|
{
|
||||||
$sourcelinenb=0; $endoffile=0;
|
global $tablewithentity_cache;
|
||||||
|
$tablewithentity_cache=array();
|
||||||
|
$sourcelinenb=0; $endoffile=0;
|
||||||
|
|
||||||
// Loop on each input file record
|
// Loop on each input file record
|
||||||
while ($sourcelinenb < $nboflines && ! $endoffile)
|
while ($sourcelinenb < $nboflines && ! $endoffile)
|
||||||
{
|
{
|
||||||
@ -1621,7 +1624,10 @@ if ($step == 6 && $datatoimport)
|
|||||||
$result=$obj->import_open_file($pathfile,$langs);
|
$result=$obj->import_open_file($pathfile,$langs);
|
||||||
if ($result > 0)
|
if ($result > 0)
|
||||||
{
|
{
|
||||||
|
global $tablewithentity_cache;
|
||||||
|
$tablewithentity_cache=array();
|
||||||
$sourcelinenb=0; $endoffile=0;
|
$sourcelinenb=0; $endoffile=0;
|
||||||
|
|
||||||
while ($sourcelinenb < $nboflines && ! $endoffile)
|
while ($sourcelinenb < $nboflines && ! $endoffile)
|
||||||
{
|
{
|
||||||
$sourcelinenb++;
|
$sourcelinenb++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user