Browse Source

由于内存不够。只返回部分字段

visuddhinanda 3 years ago
parent
commit
989ddcb3e7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/Console/Commands/UpgradePaliText.php

+ 2 - 1
app/Console/Commands/UpgradePaliText.php

@@ -84,7 +84,8 @@ class UpgradePaliText extends Command
 				Log::error( "can not open csv file. filename=" . $csvFile) ;
 				continue;
 			}
-			$title_data = PaliText::where('book',$from)->orderby('paragraph','asc')->get();
+			$title_data = PaliText::select(['book','paragraph','level','parent','toc'])
+								->where('book',$from)->orderby('paragraph','asc')->get();
             {
 				$paragraph_count = count($title_data);
 				$paragraph_info = array();