-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
File Comments Data Structure #20265
Comments
fileid is not always int (depends on the storage) |
Please replace "(Un)read status, per comment version:" with "last read status". We don't want each comment to have a flag. We only need the last read date for each file, so the fields would be "fileid, userid, lastdate" |
@nickvergessen @PVince81 adjusted |
commantid -> id |
✔️ |
|
object type and object id please instead of file id |
children-count |
updated the encryption. Set the object type to string, is more explanatory than numbers, especially in URLs. |
timestamp of last child for sorting? |
yes, added |
If we want to totally keep a hierarchy possible that is deeper than just one level, we'd need to add a topmostparentid in order to be able to cheaply detect the root of the thread. We agreed that in the file comments matter, 1-level depth might be considerable in future. However, this does not need to apply to all possible use cases of the comments infrastracture. What do you think? |
Well consensus was to make it possible to have it nested. |
Adding it later does not sound too desirable. If you need to determine those parents for millions of comments upon update. Well, you could skip that and only determine that column on demand and/or specific cli call, but we'd need to carry this load forever. Better we do it now or not, let's do this. In our first implementation, it'll be always 0 anyways. |
|
DB scheme for Comments table, resolves #20265
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Contributes to #16328
Comment:
The chosen way to identify comments as unread is to keep a "last seen time" timestamp per user and file, which applies to all file activities (like updates). This would be implemented within the Timelime logic and structure (#20259).
In general, a thing to ensure is it that userids are compatible with federation.
@nickvergessen @PVince81 @DeepDiver1975 @jancborchardt
The text was updated successfully, but these errors were encountered: