0

キューブのパーティションを作成する際に、パーティション処理の時間に問題が発生しました。パーティションなしのキューブ全体の処理時間は 51 分です。メジャー グループの月単位のパーティションを作成しました。メジャー グループごとに 1 か月のパーティションの処理時間を調べました (最大 2.30 分)。1 つのパーティション (メジャー グループごとに同じ月) を選択して手動で処理しましたが、合計で約 15 分かかりました。

パーティションを並行して処理すると、時間が大幅に短縮されると思いました。ただし、「 Analysis Services Processing Task」を追加し、すべてのパーティションを選択して、SSISパッケージを作成しました。このタスクでは、処理順序 = Parallelを選択しました。パッケージを実行すると、約 16 分かかりました (つまり、手動の順次パーティション処理よりも長くなります)。

XMLA スクリプトを使用して、パーティションを並列処理することも試みました。

<Batch xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
<Parallel>
<Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200">
  <Object>
    <DatabaseID>OLAP_Partitioning_20130222</DatabaseID>
    <CubeID>Usage</CubeID>
    <MeasureGroupID>Partition1</MeasureGroupID>
    <PartitionID>Partition1_20130101-20130131</PartitionID>
  </Object>
  <Type>ProcessFull</Type>
  <WriteBackTableCreation>UseExisting</WriteBackTableCreation>
</Process>
</Parallel>
<Parallel>
<Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200">
  <Object>
    <DatabaseID>OLAP_Partitioning_20130222</DatabaseID>
    <CubeID>Usage</CubeID>
    <MeasureGroupID>Partition2</MeasureGroupID>
    <PartitionID>Partition2_20130101-20130131</PartitionID>
  </Object>
  <Type>ProcessFull</Type>
  <WriteBackTableCreation>UseExisting</WriteBackTableCreation>
</Process>

こちらも15分以上かかりました。私が間違っていること、誰かが私に何かヒントを教えてもらえますか? パーティションの処理時間を最適化するにはどうすればよいですか?

4

0 に答える 0