Skip to content

Commit

Permalink
we are gonna have to start from 0
Browse files Browse the repository at this point in the history
  • Loading branch information
almasaeed2010 committed Jan 30, 2018
1 parent 6b033a3 commit 038d5b5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tripal_elasticsearch.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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";
}

Expand Down

0 comments on commit 038d5b5

Please sign in to comment.