{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Treasure Dataにおけるデータパーティショニング","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-dataにおけるデータパーティショニング","__idx":0},"children":["Treasure Dataにおけるデータパーティショニング"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataのテーブルは、デフォルトで",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["time"]},"カラムによってパーティション分割されます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["レコードが",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["time"]},"カラムの値でフィルタリングされる場合、クエリエンジンはデータセット全体を処理する代わりに、関連するレコードのみを処理します。"," ","この処理時のデータプルーニングにより、効率的なデータ処理が可能になります。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下の例では、指定された時間範囲に適合するレコードのみが選択されます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"--example 1:\nSELECT\n  ...\nWHERE\n  TD_TIME_RANGE(time,'2013-01-01', 'PDT', null);\n\n--example 2:\nSELECT\n  COUNT(1)\nFROM\n  table_name\nWHERE\n  TD_TIME_RANGE(time, '2017-07-01', '2017-07-02', 'UTC');\n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["システムは、最適なクエリパフォーマンスとロードバランシングを維持するために、バックグラウンドでテーブルパーティションを動的に統合および分割します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ユーザー定義パーティショニング","__idx":1},"children":["ユーザー定義パーティショニング"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ユーザー定義パーティショニングは、タイムスタンプベースのパーティショニングの代替手段です。ユーザー定義パーティショニングにより、非時系列データを扱う際のパフォーマンスを向上させる他のデータパーティショニング戦略が可能になります。詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/data-workbench/queries/trino/performance_tuning#defining-partitioning-for-trino"},"children":["Trinoのパーティショニング定義"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Dataで時間ベースのパーティショニングを使用する例については、以下を参照してください:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/data-workbench/queries/trino/performance_tuning"},"children":["パフォーマンスチューニング"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/customer-data-platform/data-workbench/queries/trino/performance_tuning#leveraging-time-based-partitioning"},"children":["時間ベースのパーティショニングの活用"]}]}]}]},"headings":[{"value":"Treasure Dataにおけるデータパーティショニング","id":"treasure-dataにおけるデータパーティショニング","depth":1},{"value":"ユーザー定義パーティショニング","id":"ユーザー定義パーティショニング","depth":2}],"frontmatter":{"seo":{"title":"Treasure Dataにおけるデータパーティショニング"}},"lastModified":"2026-01-29T02:26:20.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/products/customer-data-platform/data-workbench/queries/data-partitioning-in-treasure-data","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}