Skip to content

MisskeyChatのuserHistory API が getOne といいつつ limit がない #18142

Closed

Description

@fruitriin

💡 Summary

DBから1件を取得するつもりで全件取得していて重い

🥰 Expected Behavior

1件だけとる

🤬 Actual Behavior

ぜんぶとる

📝 Steps to Reproduce

No response

💻 Frontend Environment

* Model and OS of the device(s):
* Browser:
* Server URL:
* Misskey:

🛰 Backend Environment (for server admin)

* Installation Method or Hosting Service:
* Misskey:
* Node:
* PostgreSQL:
* Redis:
* OS and Architecture:

Do you want to address this bug yourself?

  • Yes, I will patch the bug myself and send a pull request

Activity

  1. added
    ⚠️bug?
    on Nov 12, 2026
  2. dosubot commented on Nov 12, 2026

    @dosubot

    userHistory だけでなく、roomHistory も同じく、SQL の件数制限を付けずに getOne() を呼んでいます。ルーム側も併せて確認対象になりそうです。[1]

    なお、chat/history の API パラメータには limit がありますが、これは履歴を集めるループの回数に使われていて、各クエリの取得件数は制限していません。[2] [3]

    To reply, just mention @dosu.


    Share context across your team and agents. Try Dosu.

    Leave Feedback Learn about misskey with Dosu Add Dosu to your team

  3. syuilo commented on Nov 12, 2026

    @syuilo
    Member

    🙏🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⚠️bug?

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions