Paginating the Tree part of a TreeTable

I have a list of over 200,000 items that are being added as children of a root element in a TreeTable. When expanding the list of children, each of these needs to read from the database in order to display the relevant info about that node.

Is there anyway I can paginate this? I would love to only show the first 50 (or whatever) elements, and only load the others if the user scolls down through the thousands of other children. I’ve got paginating on the table itself, it’s just the expandable elements that don’t seem to respect it.