관리자 설정: 데이터 그룹

데이터 그룹 정보

데이터 그룹을 사용하면 PDT를 다시 빌드하는 쿼리 캐싱 정책과 트리거를 지정할 수 있습니다. 관리 메뉴의 데이터베이스 섹션에서 데이터 그룹 페이지에 액세스할 수 있는 권한이 있는 경우 모델이 데이터 액세스하는 데이터에 정의된 데이터 그룹 요약이 표시됩니다.

데이터 그룹 페이지에서는 각 데이터 그룹에 대해 다음 정보를 제공합니다.

정의
이름 모델 파일에서 정의하는 데이터 그룹의 이름입니다.
라벨 모델 파일에서 datagroup 매개변수에 대해 정의하는 선택적 데이터 그룹 라벨을 지정합니다.
연결 데이터 그룹의 데이터베이스 연결입니다.
모델 데이터 그룹이 정의된 LookML 모델입니다. LookML 버튼을 클릭하여 LookML 모델 파일을 엽니다.
유형 데이터 그룹의 트리거 유형입니다(예: sql_trigger). 데이터 그룹에 지정된 트리거 유형이 없으면 유형이 비어 있게 됩니다.
설명 모델 파일에서 datagroup 매개변수에 정의되는 데이터 그룹 설명을 지정합니다(선택사항). 데이터 그룹 설명은 데이터 그룹의 목적과 메커니즘을 설명하는 데 사용될 수 있습니다.
작업 데이터 그룹에 대해 취할 수 있는 조치(아래 참조).

데이터 그룹 상태에 따라 이름 아래에 다음과 같은 자세한 정보가 표시될 수 있습니다.

  • 상태에는 데이터 그룹의 현재 상태가 표시됩니다. 상태는 데이터 그룹의 각 선 옆에 색상 점으로도 표시됩니다.
    • 녹색 — 데이터 그룹이 준비 상태입니다.
    • 주황색 — 데이터 그룹이 트리거된 상태입니다. 또는 데이터 그룹이 최근에 프로덕션에 배포되었고 트리거 검사 주기가 아직 시작되지 않았습니다.
    • 빨간색 - 가장 최근의 트리거 검사에서 오류가 발생했거나 데이터 그룹의 LookML에 오류가 발생했습니다. LookML 버튼을 클릭하여 LookML 모델 파일을 열 수 있습니다.

    <li><strong>Trigger value</strong> shows the result of the <code>sql_trigger</code> query that triggered the datagroup. In the example above, the SQL trigger for the <code>orders_datagroup</code> is based on the maximum ETL log ID. The <strong>Trigger value</strong> shows the new ETL log ID that triggered the datagroup: <strong>284183</strong>.</li>
    <li><strong>Triggered since</strong> is displayed for datagroups in the triggered state to show how long it has been since the datagroup was triggered. This provides information on how long it is taking to rebuild PDTs and run the queries that triggered by the datagroup. Once all PDTs are rebuilt, the datagroup's color will update to green to indicate that the datagroup is ready, and after several minutes the <strong>Triggered since</strong> information will disappear from the page since the datagroup is complete.</li>
    <li><strong>Trigger error</strong> provides error information for the datagroup triggers. In the example above, the <code>user_information</code> datagroup has a syntax error in its SQL trigger. When you see an error like this, you can click the <strong>LookML</strong> button to open the LookML model file and correct the SQL syntax.</li>
    <li><strong>Trigger last checked</strong> shows the last time that the datagroup's <code>sql_trigger</code> SQL query was run. If the value returned by the query is different next time, that triggers the datagroup.</li>
    <li><strong>Cache reset at</strong> shows the time when the cache was last reset (when the cached data in the datagroup was last invalidated).</li>
    </ul>
    

    데이터 그룹 작업

    권한에 따라 데이터 그룹 관리 페이지에서 데이터 그룹에 대해 다음 작업을 수행할 수 있습니다.

    1. LookML 버튼을 클릭하여 데이터 그룹이 정의된 LookML 모델 파일을 엽니다.
    2. 톱니바퀴 메뉴에서 캐시 재설정을 선택하여 해당 데이터 그룹을 사용하는 모든 탐색 분석에 대해 캐시된 결과를 즉시 무효화합니다.
    3. 톱니바퀴 메뉴에서 데이터 그룹 트리거를 선택하여 모든 탐색 분석의 캐시된 결과를 무효화하고 해당 데이터 그룹을 사용하여 모든 PDT를 다시 빌드합니다. PDT 재빌드는 연결의 PDT 및 데이터 그룹 유지보수 일정 필드에 지정된 다음 시간을 기준으로 시작됩니다(예: 5분마다). 트리거된 데이터 그룹이 준비 상태에 도달하면 데이터 그룹을 트리거로 사용하는 Looks, 대시보드, 기존 대시보드, LookML 대시보드의 예약된 데이터 전송이 모두 전송됩니다.