There is a huge nesting of data, 12 thousand records.
For example there is:
category->category1->category1.1->category->1.1.1......и т.д. There may or may not be children. In addition to the output, you will need to do a search. I tried to use Nested Set, built a tree, in the end he brought me all 12 thousand records and Yii 2 issued:
PHP Fatal Error – yii\base\ErrorException Allowed memory size of 134217728 bytes exhausted (tried to allocate 4096 bytes) Even if I break into requests that would not immediately bring me the whole tree, then how to deal with the search, and the normal load on the server is obtained.
The first time I encounter such a task. What is the best scheme?
category->category1->category1.1->category->1.1.1can you give? - Bulson