Adjust BPlusTree Node size, a=chris

Chris Pollett [2021-09-09 15:Sep:th]
Adjust BPlusTree Node size, a=chris
Filename
src/executables/QueueServer.php
src/library/BPlusTree.php
src/library/PartitionDocumentBundle.php
diff --git a/src/executables/QueueServer.php b/src/executables/QueueServer.php
index edcdf420c..cd266739f 100755
--- a/src/executables/QueueServer.php
+++ b/src/executables/QueueServer.php
@@ -1825,7 +1825,8 @@ class QueueServer implements CrawlConstants
             unlink($file);
             return;
         }
-        L\crawlLog("A. Indexer unpack index data, init local shard time: " .
+        L\crawlLog("A. Indexer unpack index data. Memory usage:" .
+             memory_get_usage() . " init local shard time: " .
             L\changeInMicrotime($start_time));
         $start_time = microtime(true);
         $num_seen = count($seen_sites);
diff --git a/src/library/BPlusTree.php b/src/library/BPlusTree.php
index e468af298..6699abdab 100644
--- a/src/library/BPlusTree.php
+++ b/src/library/BPlusTree.php
@@ -46,7 +46,7 @@ class BPlusTree
      * The MAXIMUM number of keys stored in a tree node (will split if have
      * more)
      */
-    const MAX_KEYS = 1001;
+    const MAX_KEYS = 501;
     /**
      *
      */
diff --git a/src/library/PartitionDocumentBundle.php b/src/library/PartitionDocumentBundle.php
index df28fe1e8..e2f473733 100644
--- a/src/library/PartitionDocumentBundle.php
+++ b/src/library/PartitionDocumentBundle.php
@@ -353,7 +353,10 @@ class PartitionDocumentBundle
         return $index;
     }
     /**
+     * Used to add new records to the PartitionDocumentBundle
      *
+     * @param array $row_or_rows either array of record with fields given
+     *      by this PartitionDocumentBundle's signature or an array of rows.
      */
     public function put($row_or_rows)
     {
@@ -509,7 +512,11 @@ class PartitionDocumentBundle
         }
     }
     /**
+     * Used to add a blob item to the current save partition file.
      *
+     * @param string $value blob item to be added to file
+     * @return array [offset into save partition, length stored,
+     *      partition number OF current save partition]
      */
     protected function addArchive($value)
     {
ViewGit