Ozzy47
Well-known member
In my setup file I have this:
Then in my job files, they look like this, (I will show the rebulld post mentions as an example):
Now when installing the addon, or upgrading, I see large query counts and memory usage, 80000 - 8600 queries, and memory usage 20.00 - 30.00 mb screenshot below
This is on a dev site with about 11,000 posts. My question is, is this something that is normal,? Should I be concerned about slowing down someones site doing this?
PHP:
public function installStep1()
{
$this->jobManager()->enqueueUnique(
'liamWMentionMiniAvatar-' . __FUNCTION__,
'LiamW\MentionMiniAvatar:RebuildPostMentions',
[],
true
);
}
public function installStep2()
{
$this->jobManager()->enqueueUnique(
'liamWMentionMiniAvatar-' . __FUNCTION__,
'LiamW\MentionMiniAvatar:RebuildConversationMessageMentions',
[],
true
);
}
public function installStep3()
{
$this->jobManager()->enqueueUnique(
'liamWMentionMiniAvatar-' . __FUNCTION__,
'LiamW\MentionMiniAvatar:RebuildProfilePostMentions',
[],
true
);
}
public function installStep4()
{
$this->jobManager()->enqueueUnique(
'liamWMentionMiniAvatar-' . __FUNCTION__,
'LiamW\MentionMiniAvatar:RebuildProfilePostCommentMentions',
[],
true
);
}
public function upgrade1000170Step1()
{
$this->jobManager()->enqueueUnique(
'liamWMentionMiniAvatar-' . __FUNCTION__,
'LiamW\MentionMiniAvatar:RebuildPostMentions',
[],
true
);
}
public function upgrade1000170Step2()
{
$this->jobManager()->enqueueUnique(
'liamWMentionMiniAvatar-' . __FUNCTION__,
'LiamW\MentionMiniAvatar:RebuildConversationMessageMentions',
[],
true
);
}
public function upgrade1000170Step3()
{
$this->jobManager()->enqueueUnique(
'liamWMentionMiniAvatar-' . __FUNCTION__,
'LiamW\MentionMiniAvatar:RebuildProfilePostMentions',
[],
true
);
}
public function upgrade1000170Step4()
{
$this->jobManager()->enqueueUnique(
'liamWMentionMiniAvatar-' . __FUNCTION__,
'LiamW\MentionMiniAvatar:RebuildProfilePostCommentMentions',
[],
true
);
}
Then in my job files, they look like this, (I will show the rebulld post mentions as an example):
PHP:
class RebuildPostMentions extends AbstractRebuildMentions
{
/**
* @return string
*/
protected function getContentType()
{
return 'post';
}
}
Now when installing the addon, or upgrading, I see large query counts and memory usage, 80000 - 8600 queries, and memory usage 20.00 - 30.00 mb screenshot below
This is on a dev site with about 11,000 posts. My question is, is this something that is normal,? Should I be concerned about slowing down someones site doing this?