首页加载速度慢方法调整
This commit is contained in:
@@ -583,7 +583,7 @@ class Ucenter extends Base{
|
|||||||
|
|
||||||
//查询文章信息
|
//查询文章信息
|
||||||
$aArticle = $aAuthor = $aProductionArticle = [];
|
$aArticle = $aAuthor = $aProductionArticle = [];
|
||||||
$aChunksId = array_chunk($ids, 1000);
|
$aChunksId = array_chunk($ids, 200);
|
||||||
foreach ($aChunksId as $value) {
|
foreach ($aChunksId as $value) {
|
||||||
$articles = $this->article_obj
|
$articles = $this->article_obj
|
||||||
->field("t_article.*,t_journal.title as journal_title,t_journal.abbr")
|
->field("t_article.*,t_journal.title as journal_title,t_journal.abbr")
|
||||||
|
|||||||
Reference in New Issue
Block a user