Очень интересная задачка с таким количеством записей (более 13 тыс.).
И варианты Константина подтолкнули меня к попытке решить задачу SQL запросом.
Небольшой апдейт примера.
- Изменен запрос, что позволяет отображать полный родительский уровень текущей записи, все узлы.
Более информативный вывод и более оперативное переключение.
- Изменен вид для отличия отображения узлов и конечных листьев.
- Добавлена возможность подсвечивания искомого слова в таблице. На мой взгляд актуально для больших текстов на экране.
- Исправлен выбор строки после раскрытия записи.
К сожалению, ввиду медлительности компонента (дерево строится долго) поиск затруднен. Но возможен
A very interesting problem with so many records (more than 13 thousand).
And Konstantin’s options pushed me to try to solve the problem with an SQL query.
A small update to the example.
- The query has been changed to allow displaying the full parent level of the current record, all nodes.
More informative output and faster switching.
- Changed the view to differentiate the display of nodes and terminal leaves.
- Added the ability to highlight the searched word in the table. In my opinion, it is relevant for large texts on the screen.
- Fixed selecting a line after expanding a record.
Unfortunately, due to the slowness of the component (the tree takes a long time to build), the search is difficult. But it is possible.