diff options
author | Thomas Citharel <tcit@tcit.fr> | 2016-04-18 22:13:48 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2016-04-18 22:13:48 +0200 |
commit | ca8d61b95879314e25aa87c11b5bbfd0df7adb91 (patch) | |
tree | 4f24f1a20f4eccddd8008faa351121c097848218 /src/Wallabag/ImportBundle/Import/WallabagImport.php | |
parent | 23feba63bb22c240f22243738b1157f88041948a (diff) | |
parent | 23d24b17509ed3e8725bc911a8a2f8fe502e38f2 (diff) | |
download | wallabag-ca8d61b95879314e25aa87c11b5bbfd0df7adb91.tar.gz wallabag-ca8d61b95879314e25aa87c11b5bbfd0df7adb91.tar.zst wallabag-ca8d61b95879314e25aa87c11b5bbfd0df7adb91.zip |
Merge pull request #1942 from wallabag/optimize-import
Optimize import
Diffstat (limited to 'src/Wallabag/ImportBundle/Import/WallabagImport.php')
-rw-r--r-- | src/Wallabag/ImportBundle/Import/WallabagImport.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Wallabag/ImportBundle/Import/WallabagImport.php b/src/Wallabag/ImportBundle/Import/WallabagImport.php index d65bc530..65803823 100644 --- a/src/Wallabag/ImportBundle/Import/WallabagImport.php +++ b/src/Wallabag/ImportBundle/Import/WallabagImport.php | |||
@@ -185,6 +185,7 @@ abstract class WallabagImport implements ImportInterface | |||
185 | // flush every 20 entries | 185 | // flush every 20 entries |
186 | if (($i % 20) === 0) { | 186 | if (($i % 20) === 0) { |
187 | $this->em->flush(); | 187 | $this->em->flush(); |
188 | $this->em->clear($entry); | ||
188 | } | 189 | } |
189 | ++$i; | 190 | ++$i; |
190 | } | 191 | } |