操作
Enhancement(機能追加・改善) #400
完了Speed up retrieving a list of friends in member/home (マイホームにおけるフレンド一覧の取得処理を高速化する)
開始日:
2009-12-30
期日:
進捗率:
100%
予定工数:
説明
マイホームのフレンド一覧を表示する際に呼ばれる、Member::getFriend()で発するクエリが遅い。
SELECT m.id AS m__id, m.name AS m__name, m.invite_member_id AS m__invite_member_id, m.is_login_rejected AS m__is_login_rejected, m.created_at AS m__created_at, m.updated_at AS m__updated_at, m.is_active AS m__is_active FROM member m WHERE m.id IN (SELECT m2.member_id_to AS m2__member_id_to FROM member_relationship m2 WHERE (m2.member_id_from = ? AND m2.is_friend = '1')) AND (m.is_active = '1' OR m.is_active IS NULL) ORDER BY RAND() LIMIT 9;
操作