From 038d5b5884e8f17e905cb9de8f4e058f8cd12716 Mon Sep 17 00:00:00 2001 From: Abdullah Almsaeed Date: Tue, 30 Jan 2018 12:25:56 -0500 Subject: [PATCH] we are gonna have to start from 0 --- tripal_elasticsearch.drush.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tripal_elasticsearch.drush.inc b/tripal_elasticsearch.drush.inc index 7117b41d..1d430bbe 100644 --- a/tripal_elasticsearch.drush.inc +++ b/tripal_elasticsearch.drush.inc @@ -41,8 +41,7 @@ function drush_tripal_elasticsearch_es_run_tests() { JOIN tripal_bundle ON tripal_entity.term_id = tripal_bundle.term_id WHERE status=1 AND bundle=:bundle", [':bundle' => $table])->fetchField(); - for ($i = 193845; $i < $max; $i += 100) { - // for ($i = 0; $i < $max; $i += 100) { + for ($i = 0; $i < $max; $i += 100) { $records = db_query("SELECT tripal_entity.id AS entity_id, title, tripal_bundle.name AS bundle_label FROM tripal_entity JOIN tripal_bundle ON tripal_entity.term_id = tripal_bundle.term_id @@ -64,6 +63,8 @@ function drush_tripal_elasticsearch_es_run_tests() { $memory_usage[$i][] = $mem; print "After load memory Usage: " . number_format($mem) . " bytes\n"; + $entities = NULL; + print "\n ============ \n\n"; }