-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CU-86934hmxa] return root thread comments use pagination #238
Comments
Is it worth to introduce |
The advantage of this is that it is easy to build a comment view with only two layers. The first layer is the root comment, which is oriented towards the comment object (article), and the second layer is the reply to the comment, with the reply target being the root comment or other reply. comment:
|
To achieve such a view, we only need to maintain two relationships for comments: the root relationship and the reply relationship. |
The current flat structure returns no application value, it is like a journal. And the tree structure does not have pagination function and has no engineering significance
Each descendant comment should record their root comment ID, so that we can perform pagination queries on the root comment and recall the N levels of descendant comments below each root comment。
The text was updated successfully, but these errors were encountered: