위에서 나열된 보고서를 만들기 위해 데이터 탐색기 SQL 작업을 진행해 왔습니다. 저는 SQL 전문가가 아니지만, 아래 쿼리는 정상적으로 작동합니다. 아래 쿼리를 사용하면 이 수준의 정보를 제공할 수 있습니다.
번역 상태 보고서
영역
대상
번역 완료
번역 예정
토픽
540
450
90
게시물
3,700
800
2900
토픽:
-- 설정:
-- 번역 설정에 맞게 SQL 업데이트
-- 백필할 일수 - Interval 'xxx'
-- 무시할 카테고리 - Category_id NOT IN ()
-- 토픽 유형 - 일반 또는 private_message
--
-- 번역 상태:
-- 번역할 토픽 총 개수: 'and topics.locale' where 문 두 개 모두 주석 처리
-- 번역되지 않은 토픽: topics.locale is null 문만 주석 해제
-- 번역된 토픽: topics.local = 'en' 문만 주석 해제
SELECT count(distinct topics.id)
FROM topics
JOIN posts ON topics.id = posts.topic_id
WHERE posts.created_at >= NOW() - INTERVAL '100 days'
AND posts.user_id > 0
AND topics.category_id NOT IN (22,3)
AND topics.archetype = 'regular'
-- AND topics.locale = 'en'
-- AND topics.locale is null
게시물:
-- 설정:
-- 번역 설정에 맞게 SQL 업데이트
-- 백필할 일수 - Interval 'xxx'
-- 무시할 카테고리 - Category_id NOT IN ()
-- 토픽 유형 - 일반 또는 private_message
--
-- 번역 상태:
-- 번역할 게시물 총 개수: 'and posts.locale' where 문 두 개 모두 주석 처리
-- 번역되지 않은 게시물: posts.locale is null 문만 주석 해제
-- 번역된 게시물: posts.locale = 'en' 문만 주석 해제
SELECT count(*)
FROM posts
JOIN topics ON topics.id = posts.topic_id
WHERE posts.created_at >= NOW() - INTERVAL '100 days'
AND posts.user_id > 0
AND topics.category_id NOT IN (22,3)
AND topics.archetype = 'regular'
-- AND posts.locale = 'en'
-- AND posts.locale is null