사용자 페이지 지표

안녕하세요 @srinivas.chilukuri,

/u 사용자 페이지 통계는 directory_items 테이블을 사용하여 Data Explorer를 통해 조회할 수 있습니다.

사용자 디렉터리 페이지 지표

-- [params]
-- int :period
-- Period Options:
-- 1. all
-- 2. yearly
-- 3. monthly
-- 4. weekly
-- 5. daily
-- 6. quarterly

SELECT 
    di.user_id,
    COALESCE(di.likes_received, 0) AS likes_received,
    COALESCE(di.likes_given, 0) AS likes_given,
    COALESCE(di.topics_entered, 0) AS topics_viewed,
    COALESCE(di.topic_count, 0) AS topic_count,
    COALESCE(di.post_count, 0) AS post_count,
    COALESCE(di.days_visited, 0) AS days_visited,
    COALESCE(di.posts_read, 0) AS posts_read,
    COALESCE(di.solutions, 0) AS solutions,
    COALESCE(di.gamification_score, 0) AS cheers
FROM 
    directory_items di
WHERE 
    di.period_type = :period
ORDER BY 
    di.user_id

일반적인 start_dateend_date 파라미터 대신, 이 테이블의 데이터는 디렉터리 페이지에서 사용할 수 있는 다양한 기간에 해당하는 다음 값들을 가진 period_type 필드를 사용하여 필터링할 수 있습니다:

  • 1: 전체 기간 (all time)
  • 2: 연도별 (yearly)
  • 3: 월별 (monthly)
  • 4: 주별 (weekly)
  • 5: 일별 (daily)
  • 6: 분기별 (quarterly)

이 리포트의 예시 결과는 다음과 같습니다:

user likes_received likes_given topics_viewed topic_count post_count days_visited posts_read solutions cheers
Username1 4 17 250 69 116 480 217 10 844100
Username2 2 5 47 0 2 43 59 1 112305
Username3 0 4 2 0 0 2 7 0 3100
..