ORM was not written properly. When it's converted to SQL, you will see many IN(1,2,3,4,5,.....1000) sql query.
The ORM for tags needs to be fixed.
Tags module fails when there are hundreds or thousands of tags
peterlu thanks for the report. Have you identified which parts of the code are responsible ?
5 days later
- Edited
clarkwinkelmann
vendor/flarum/tags/src/Tag.php
protected static function getIdsWherePermission(User $user, $permission, $condition = true)
if (! $tags) {
$tags = static::with('parent')->get();
}
maybe this whole function needs optimisation.
Try 10k primary tags, and 30k secondary tags (3 per primary tag).
a year later
Any news about this issue? I would like to have about 60'000 tags and the whole forum freezes with so much tags.
[deleted]
maisen20 surely having this many tags is going to make the forum impossible to navigate