You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The rebuild_tree operation in SQLAlchemy-MPTT is experiencing performance problems and taking an unexpectedly long time to complete, particularly when dealing with large datasets. This issue significantly impacts the usability and efficiency of the library.
Expected Behavior:
The rebuild_treeoperation should complete within a reasonable time frame, even as the size of the dataset grows.
Actual Behavior:
The rebuild_tree operation is taking an unreasonably long time, especially noticeable when dealing with larger datasets, adversely affecting the overall performance of the library.
The text was updated successfully, but these errors were encountered:
@akhil018 You didn't specify the size of the dataset when it starts to be unreasonably slow. I think it would be useful.
Note, that there is no magic here: Roughly,, on insert you have to update all parent nodes and the nodes whose id is larger than the id of the new node. In the worst case, it can be all records in the table.
The
rebuild_tree
operation inSQLAlchemy-MPTT
is experiencing performance problems and taking an unexpectedly long time to complete, particularly when dealing with large datasets. This issue significantly impacts the usability and efficiency of the library.Expected Behavior:
The
rebuild_tree
operation should complete within a reasonable time frame, even as the size of the dataset grows.Actual Behavior:
The
rebuild_tree
operation is taking an unreasonably long time, especially noticeable when dealing with larger datasets, adversely affecting the overall performance of the library.The text was updated successfully, but these errors were encountered: