Skip to content
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

ソートにIDを使わない #1405

Closed
syuilo opened this issue Apr 5, 2018 · 3 comments · Fixed by #4572
Closed

ソートにIDを使わない #1405

syuilo opened this issue Apr 5, 2018 · 3 comments · Fixed by #4572
Labels
💬Discussion Being discussed or needs discussion

Comments

@syuilo
Copy link
Member

syuilo commented Apr 5, 2018

代わりにcreatedAtを使う
ActivityPubのようにデータベースに挿入した順序が必ずしも投稿を作成した順序とは一致しない場合もあるため


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@akihikodaki
Copy link
Contributor

IDとcreatedAtを使う場面を分ける必要がある。例えば、タイムラインの構築はIDでやったほうが良い。そうすると、ストリーミングで受け取った順序とタイムラインでの表示順序を一致させることができる。
ただし、MongoDBのIDはかならずしも単調ではない (データベースに保存した時系列と一致しない) ことに注意する。クラスタ構成ではクラスタによってIDが前後する。そのため、順序を保証できるのは秒精度でしかない。

@syuilo
Copy link
Member Author

syuilo commented Apr 5, 2018

ふぅ~~~~~~む

@syuilo syuilo added the 💬Discussion Being discussed or needs discussion label Apr 5, 2018
@tosuke
Copy link
Contributor

tosuke commented Jan 31, 2019

nokotaro pushed a commit to nokotaro/misskey that referenced this issue Jul 5, 2020
Bumps [vue-json-pretty](https://github.com/leezng/vue-json-pretty) from 1.6.3 to 1.6.4.
- [Release notes](https://github.com/leezng/vue-json-pretty/releases)
- [Commits](leezng/vue-json-pretty@v1.6.3...v1.6.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💬Discussion Being discussed or needs discussion
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants