Open kenorb opened 10 years ago
It seems for each item, whole Drupal core is initialized:
[exec] Initialized Drupal 7.31 root directory at /home/travis/ads/src [notice]
[exec] Initialized Drupal site default at sites/default [notice]
[exec] Line 85 of 92 processed: "AD", "Ordino", "Segudet" [ok]
[exec] Command dispatch complete [notice]
[exec] /usr/bin/php -d magic_quotes_gpc=Off -d magic_quotes_runtime=Off -d [notice]
[exec] magic_quotes_sybase=Off /usr/share/php/drush/drush.php
[exec] --php=/usr/bin/php --php-options=' -d magic_quotes_gpc=Off -d
[exec] magic_quotes_runtime=Off -d magic_quotes_sybase=Off' --backend=2
[exec] --verbose --yes --root=/home/travis/ads/src --uri=http://default
[exec] batch-process 24 24 2>&1
[exec] Initialized Drupal 7.31 root directory at /home/travis/ads/src [notice]
[exec] Initialized Drupal site default at sites/default [notice]
[exec] Line 86 of 92 processed: "AD", "Sant Julia De Loria", "Sertes" [ok]
[exec] Command dispatch complete [notice]
[exec] /usr/bin/php -d magic_quotes_gpc=Off -d magic_quotes_runtime=Off -d [notice]
[exec] magic_quotes_sybase=Off /usr/share/php/drush/drush.php
[exec] --php=/usr/bin/php --php-options=' -d magic_quotes_gpc=Off -d
[exec] magic_quotes_runtime=Off -d magic_quotes_sybase=Off' --backend=2
[exec] --verbose --yes --root=/home/travis/ads/src --uri=http://default
[exec] batch-process 24 24 2>&1
Accepted
Import can be performed manually by:
$ phing configure
$ drush --verbose --debug --yes ads-configure `drush eval "print sys_get_temp_dir() . '/ads-configure.properties.json'"`
Line 200 of 17705 processed: "GB", "Buckinghamshire", "Adstock" [79.07 sec, 9.5 MB] [ok]
Line 1000 of 17705 processed: "GB", "Strabane", "Ballymagorry" [353.21 sec, 13.64 MB] [ok]
Import ~2.83/sec on OSX 2.3 GHz Intel Core i7 (PHP 5.5.3)
All GB (17705) can take around 14h, all files (3034125) - 14 days.
Profile output:
Possible modules slowing down: shs, pathauto, token. After disabling them, import is speed up by ~16x. We need to disable them before the import, I'm not sure which one slowing down the most.
After installation change project.drupal.configure.locations.countries to GB in your build.properties and run: phing post-install-drupal. It's very slow and adding only few items a second.
We need to check the performance (profiler) of ads_locations_ads_configure(). Also the script doesn't print any appropriate message that it's importing anything. We need also some simple command which helps with importing via drush, without creating json file, which makes it more complicated that it is if you want to import the specific country on depand (without running the script).