Skip to content

미션기능 데이터 join시 속도문제 #196

Description

@leeSP22

리워드 페이지에서 응답속도가 2초대가 나옴.
image
코드를 주석처리해가며 원인을 찾은 결과 DB에서 유저 활동기록 데이터를 가져올때 2초대가 걸림.

  totalReword = async (userKey) => {
    return await User.findOne({
      where: { userKey: userKey },
      include: [
        {
          model: Comment,
          include: [{ model: CommentLike }, { model: CommentSelect }],
        },
        { model: isChoice },
        { model: Advice },
        { model: Choice },
        { model: CommentSelect },
      ],
    });
  };

Activity

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

    버그Something isn't working성능 개선New feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions