How to create a site map YII2?

There is a website it has:
Tier1, уровень2, модыУровня2, уровень0
At the same url as:
Tier1 + уровень0,
Tier1 + уровень2,
Tier1 + уровень2 + модыУровня2,
Tier1 + уровень2 + модыУровня2 + уровень0,
Tier1 + уровень2 + уровень0,
Tier1 is related many-to-many with уровнем2, уровень2 with модыУровня2, Tier1 and уровень0.
If you collect the url in a loop, then hit a timeout. Runs approximately:
уровень0: 11 PCs
модыУровня2: 43464 PCs
уровень2: 731 PCs
Tier1: 3 PCs

11 * 43464 * 731 * 3 = 1048482072 iterations
June 14th 19 at 20:16
2 answers
June 14th 19 at 20:18
what are they doing that?
June 14th 19 at 20:20
manually pump the database through the editor (for example notepad++) use find and replace to substitute code, the easiest way

Find more questions by tags PHPYii