{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Treasure InsightsダッシュボードとInsightsモデル設計のベストプラクティス","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"treasure-insightsダッシュボードとinsightsモデル設計のベストプラクティス","__idx":0},"children":["Treasure InsightsダッシュボードとInsightsモデル設計のベストプラクティス"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次のベストプラクティスは、ダッシュボード設計とInsightsモデル設計を強化するためのヒントを提供します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このトピックの内容:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/treasure-insights/best-practices-for-treasure-insights-dashboard-and-insights-model-design#dashboard-design"},"children":["ダッシュボード設計"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/treasure-insights/best-practices-for-treasure-insights-dashboard-and-insights-model-design#insights-model-design"},"children":["Insightsモデル設計"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ダッシュボード設計","__idx":1},"children":["ダッシュボード設計"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ダッシュボードのパフォーマンスを向上させるためのガイドラインは次のとおりです:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ダッシュボードで推奨されるウィジェット数は7〜10です。すべてのウィジェットは1つ以上の独立したクエリを生成します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["フィルターなど、ダッシュボード内の要素の数を制限します。これにより、追加のクエリが実行されます。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["多数の行を持つピボットまたはテーブルウィジェットを使用して大量のデータを表示すると、ダッシュボードのロード時間が増加します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["幅が広いまたは長いピボットテーブルは避けてください。列の数を減らし、値をフィルタリングして行の数を減らします。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["折れ線/列グラフでの幅が広いX軸や、「break by」句に複数の項目を持つフィールドは避けてください。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["含める/除外する値やダッシュボードの日付関数が多すぎることは避けてください。代わりに、Insightsモデルでロジックを作成することをお勧めします。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["レンダリングのために返されるデータの量を制限することで、ダッシュボードのパフォーマンスを向上させることができます。できるだけデータを集計します。"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"insightsモデル設計","__idx":2},"children":["Insightsモデル設計"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Insightsモデルのパフォーマンスを向上させるためのガイドラインは次のとおりです:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Insightsモデルのテーブル間のリレーションシップは、1対多または1対1として構築することをお勧めします。多対多のリレーションシップは避けてください。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["結合キーの1つは、そのテーブルの_一意キー_である必要があります。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["**どちらの結合キーも一意でない場合、**これは多対多のリレーションシップになり、避けるべきです。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ダッシュボードを使用すると多対多のクエリが生成され、大幅なメモリスパイクが発生するため、避けるべきです。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["複数の列で2つのテーブルを結合するモデルリレーションシップの作成は避けてください。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["複数列のリレーションシップはクエリパフォーマンスに影響を与え、より多くのメモリを消費する遅いダッシュボードになります"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["複数列の一意キーを単一列の複合/代理キーに置き換えます"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["行の一意性を定義するために必要な列の一意の組み合わせごとにダミー整数キーを作成することをお勧めします。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["一意性を定義する列が2つの短い文字列である場合:"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["それらを単一の文字列に連結するカスタム列を追加します"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["そのカスタム列でリレーションシップを作成します"]}]}]}]}]},"headings":[{"value":"Treasure InsightsダッシュボードとInsightsモデル設計のベストプラクティス","id":"treasure-insightsダッシュボードとinsightsモデル設計のベストプラクティス","depth":1},{"value":"ダッシュボード設計","id":"ダッシュボード設計","depth":2},{"value":"Insightsモデル設計","id":"insightsモデル設計","depth":2}],"frontmatter":{"seo":{"title":"Treasure InsightsダッシュボードとInsightsモデル設計のベストプラクティス"}},"lastModified":"2025-11-22T02:43:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/products/customer-data-platform/treasure-insights/best-practices-for-treasure-insights-dashboard-and-insights-model-design","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}