MicroStrategy ONE
Platform Analytics ウェアハウスの削除
Platform Analytics ウェアハウスに収集および保存されたデータの一部を削除する必要が生じることもあります。保存データの大容量化によって Platform Analytics Consumer のパフォーマンスに悪影響が出始めた場合、または一部のメタデータまたはプロジェクトが環境からドロップされた場合、管理者はこの項に記載するコマンドを使用することで、Platform Analytics ウェアハウスから関連するデータを削除できます。
Platform Analytics ウェアハウス データを削除するために使用されるコマンドは、以下を含む異なる条件に基づいています。
- [メタデータ]:特定のメタデータからデータを削除できます。
- プロジェクト:特定の 1 つまたは複数のプロジェクトからデータを削除できます。ただし、それらすべてのプロジェクトは 1 つのメタデータに含まれる必要があります。
- 削除済みオブジェクト:削除済みオブジェクトと関連データを完全に削除できます。
- 削除済みプロジェクト:削除済みプロジェクトと関連データを完全に削除できます。
- DaysToKeep:指定された日数分の最新データのみを保持してデータを削除できます。
MicroStrategy は、 Platform Analytics ウェアハウスを削除するために有効な次のコマンドを提供します:
DELETE_ALL_OBJECTS_IN_METADATA
DELETE_ALL_OBJECTS_IN_PROJECTS
DELETE_ALL_DELETED_OBJECTS
DELETE_ALL_DELETED_PROJECTS
DELETE_ALL_DELETED_OBJECTS_IN_METADATA
DELETE_ALL_DELETED_PROJECTS_IN_METADATA
DELETE_ALL_DELETED_OBJECTS_IN_PROJECTS
DELETE_ALL_FACTS
DELETE_ALL_FACTS_FROM_METADATA
DELETE_ALL_FACTS_FROM_PROJECTS
DELETE_ALL_FACTS_FROM_DELETED_OBJECTS
DELETE_ALL_FACTS_FROM_DELETED_PROJECTS
DELETE_ALL_FACTS_FROM_DELETED_OBJECTS_IN_METADATA
DELETE_ALL_FACTS_FROM_DELETED_PROJECTS_IN_METADATA
DELETE_All_FACTS_FROM_DELETED_OBJECTS_IN_PROJECTS
DELETE_ALL_OBJECTS_IN_METADATA
このコマンドは、指定したメタデータ全体を削除するとともに、関連データ (lu_metadata 内の該当するメタデータも含む) を削除します。次のテーブルが削除されます。
メタデータ | プロジェクト | 構成オブジェクト | その他のオブジェクト | プロジェクト オブジェクト | ファクト テーブル | ファクト テーブル (Postgres のみ) |
---|---|---|---|---|---|---|
lu_metadata | lu_project |
lu_account lu_cache lu_db_connection lu_db_connection_map lu_db_instance lu_db_login lu_entity lu_event lu_mstr_user lu_recipient lu_schedule lu_server_definition lu_server_instance lu_subscription_base lu_subscription_device lu_user_group |
etl_lu_metadata_audit_time etl_rel_childgroup_usergroup lu_db_error lu_grid rel_account_usergroup rel_privilege_source_privilege_group rel_scope_project rel_sessionid_corrdinate rel_source_privilege_source_scope rel_user_entity_source |
etl_lu_folder lu_history_list_message lu_object lu_prompt lu_security_filter lu_status |
access_transaction access_transaction_reprocess fact_actiion_security_filter fact_action_cube_cache fact_client_executions fact_machine_configuration fact_metadata_users fact_named_user fact_named_user_license fact_object_change_journal fact_object_component fact_performance_monitor fact_product_named_users_license fact_prompt_ansers fact_report_columns fact_server_cpu_license fact_sql_stats fact_step_sequence fact_usher_entity_resolved_privilege fact_usher_inbox_message fact_usher_inbox_response lu_client_session lu_session |
historical_access_transactions historical_fact_action_cube_cache historical_fact_action_security_filter historical_fact_object_change_journal historical_fact_prompt_answers historical_fact_report_columns historical_fact_sql_stats historical_fact_step_sequence historical_lu_session |
DELETE_ALL_OBJECTS_IN_PROJECTS
このコマンドは、指定したプロジェクトをすべて削除するとともに、関連データ (lu_project 内の該当するプロジェクトを含む) を削除します。次のテーブルが削除されます。
メタデータ | プロジェクト | 構成オブジェクト | その他のオブジェクト | プロジェクト オブジェクト | ファクト テーブル | ファクト テーブル (Postgres のみ) |
---|---|---|---|---|---|---|
lu_project |
|
lu_db_error lu_grid rel_scope_project |
etl_lu_folder lu_history_list_message lu_object lu_prompt lu_security_filter lu_status |
access_transactions access_transactions_reprocess fact_action_cube_cache fact_action_security_filter fact_client_executions fact_object_change_journal fact_object_component fact_prompt_answers fact_report_columns fact_sql_stats fact_step_sequence |
historical_access_transactions historical_fact_action_cube_cache historical_fact_action_security_filter historical_fact_object_change_journal historical_fact_prompt_answers historical_fact_report_columns historical_fact_sql_stats historical_fact_step_sequence |
DELETE_ALL_DELETED_OBJECTS
このコマンドは削除済みオブジェクトをすべて削除するとともに、Platform Analytics ウェアハウス全体に含まれる関連データを削除します。次のテーブルが削除されます。
メタデータ | プロジェクト | 構成オブジェクト | その他のオブジェクト | プロジェクト オブジェクト | ファクト テーブル | ファクト テーブル (Postgres のみ) |
---|---|---|---|---|---|---|
lu_project |
lu_account lu_cache lu_db_connection lu_db_connection_map lu_db_error lu_db_instance lu_db_login lu_entity lu_event lu_mstr_user lu_schedule lu_server_definition lu_server_instance lu_subscription_base lu_subscription_device lu_user_group |
etl_rel_childgroup_usergroup lu_db_error lu_grid rel_account_usergroup rel_scope_project rel_user_entity_source |
etl_lu_folder lu_history_list_message lu_object lu_prompt lu_security_filter lu_status |
access_transactions access_transactions_reprocess fact_action_cube_cache fact_action_security_filter fact_client_executions fact_object_change_journal fact_object_change_journal fact_object_component fact_prompt_answers fact_report_columns fact_sql_stats fact_step_sequence fact_user_entity_resolved_privilege fact_latest_cube_cache |
historical_access_transactions historical_fact_action_cube_cache historical_fact_action_security_filter historical_fact_object_change_journal historical_fact_prompt_answers historical_fact_report_columns historical_fact_sql_stats historical_fact_step_sequence |
DELETE_ALL_DELETED_PROJECTS
このコマンドは削除済みプロジェクトをすべて削除するとともに、Platform Analytics ウェアハウス全体に含まれる関連データを削除します。次のテーブルが削除されます。
メタデータ | プロジェクト | 構成オブジェクト | その他のオブジェクト | プロジェクト オブジェクト | ファクト テーブル | ファクト テーブル (Postgres のみ) |
---|---|---|---|---|---|---|
lu_project |
|
lu_db_error lu_grid rel_scope_project |
lu_object lu_security_filter lu_prompt lu_history_list_message etl_lu_folder lu_status |
access_transactions access_transactions_reprocess fact_client_executions fact_action_cube_cache fact_action_security_filter fact_object_change_journal fact_object_component fact_prompt_answers fact_report_columns fact_sql_stats fact_step_sequence |
historical_access_transactions historical_fact_action_cube_cache historical_fact_action_security_filter historical_fact_object_change_journal historical_fact_prompt_answers historical_fact_report_columns historical_fact_sql_stats
|
DELETE_ALL_DELETED_OBJECTS_IN_METADATA
このコマンドは、指定したメタデータ配下の削除済みオブジェクトすべてと関連データを完全に削除します。次のテーブルが削除されます。
メタデータ | プロジェクト | 構成オブジェクト | その他のオブジェクト | プロジェクト オブジェクト | ファクト テーブル | ファクト テーブル (Postgres のみ) |
---|---|---|---|---|---|---|
lu_project |
lu_account lu_cache lu_db_connection lu_db_connection_map lu_db_instance lu_db_login lu_entity lu_event lu_mstr_user lu_schedule lu_server_definition lu_server_instance lu_subscription_base lu_subscription_device lu_subscription_device lu_user_group |
etl_rel_childgroup_usergroup lu_db_error lu_grid rel_account_usergroup rel_scope_project rel_user_entity_source |
etl_lu_folder lu_history_list_message lu_object lu_prompt lu_security_filter lu_status |
access_transactions access_transactions_reprocess fact_client_executions fact_action_cube_cache fact_action_security_filter fact_latest_cube_cache fact_object_change_journal fact_object_change_journal fact_object_component fact_prompt_answers fact_report_columns fact_sql_stats fact_step_sequence fact_user_entity_resolved_privilege |
historical_access_transactions historical_fact_action_cube_cache historical_fact_action_security_filter historical_fact_object_change_journal historical_fact_prompt_answers historical_fact_report_columns historical_fact_sql_stats historical_fact_step_sequence |
DELETE_ALL_DELETED_PROJECTS_IN_METADATA
このコマンドは、指定したメタデータ配下の削除済みプロジェクトすべてと関連データを完全に削除します。次のテーブルが削除されます。
メタデータ | プロジェクト | 構成オブジェクト | その他のオブジェクト | プロジェクト オブジェクト | ファクト テーブル | ファクト テーブル (Postgres のみ) |
---|---|---|---|---|---|---|
lu_project |
|
lu_db_error lu_grid rel_scope_project |
etl_lu_folder lu_history_list_message lu_object lu_prompt lu_security_filter lu_status |
access_transactions access_transactions_reprocess fact_client_executions fact_action_cube_cache fact_action_security_filter fact_object_change_journal fact_object_component fact_prompt_answers fact_report_columns fact_sql_stats fact_step_sequence |
historical_access_transactions historical_fact_action_cube_cache historical_fact_action_security_filter historical_fact_object_change_journal historical_fact_prompt_answers historical_fact_report_columns historical_fact_sql_stats historical_fact_step_sequence |
DELETE_ALL_DELETED_OBJECTS_IN_PROJECTS
このコマンドは、指定したプロジェクト配下の削除済みオブジェクトすべてと関連データを完全に削除します。次のテーブルが削除されます。
メタデータ | プロジェクト | 構成オブジェクト | その他のオブジェクト | プロジェクト オブジェクト | ファクト テーブル | ファクト テーブル (Postgres のみ) |
---|---|---|---|---|---|---|
lu_project |
|
lu_db_error lu_grid rel_scope_project |
etl_lu_folder lu_history_list_message lu_object lu_prompt lu_security_filter lu_status |
access_transactions access_transactions_reprocess fact_client_executions fact_action_cube_cache fact_action_security_filter fact_object_change_journal fact_object_component fact_prompt_answers fact_report_columns fact_sql_stats fact_step_sequence |
historical_access_transactions historical_fact_action_cube_cache historical_fact_action_security_filter historical_fact_object_change_journal historical_fact_prompt_answers historical_fact_report_columns historical_fact_sql_stats historical_fact_step_sequence |
DELETE_ALL_FACTS
このコマンドは Platform Analytics ウェアハウス全体に含まれるファクト テーブルをすべて削除します。次のテーブルが削除されます。
メタデータ | プロジェクト | 構成オブジェクト | その他のオブジェクト | プロジェクト オブジェクト | ファクト テーブル | ファクト テーブル (Postgres のみ) |
---|---|---|---|---|---|---|
|
lu_db_error rel_sessionid_coordinate |
lu_status |
access_transactions access_transactions_reprocess fact_client_executions fact_action_cube_cache fact_action_security_filter fact_object_change_journal fact_prompt_answers fact_report_columns fact_sql_stats fact_step_sequence lu_session |
historical_access_transactions historical_fact_action_cube_cache historical_fact_action_security_filter historical_fact_object_change_journal historical_fact_prompt_answers historical_fact_report_columns historical_fact_sql_stats historical_fact_step_sequence historical_lu_session |
DELETE_ALL_FACTS_FROM_METADATA
このコマンドは、指定したメタデータ リストに含まれるすべてのファクト テーブルを削除します。次のテーブルが削除されます。
メタデータ | プロジェクト | 構成オブジェクト | その他のオブジェクト | プロジェクト オブジェクト | ファクト テーブル | ファクト テーブル (Postgres のみ) |
---|---|---|---|---|---|---|
|
lu_db_error rel_sessionid_coordinate |
lu_status |
access_transactions access_transactions_reprocess fact_client_executions fact_action_cube_cache fact_action_security_filter fact_object_change_journal fact_prompt_answers fact_report_columns fact_sql_stats fact_step_sequence lu_client_session lu_session |
historical_access_transactions historical_fact_action_cube_cache historical_fact_action_security_filter historical_fact_object_change_journal historical_fact_prompt_answers historical_fact_report_columns historical_fact_sql_stats historical_fact_step_sequence historical_lu_session |
DELETE_ALL_FACTS_FROM_PROJECTS
このコマンドは指定したプロジェクト リストに含まれるすべてのファクト テーブルを削除します。次のテーブルが削除されます。
メタデータ | プロジェクト | 構成オブジェクト | その他のオブジェクト | プロジェクト オブジェクト | ファクト テーブル | ファクト テーブル (Postgres のみ) |
---|---|---|---|---|---|---|
|
lu_db_error |
lu_status |
access_transactions access_transactions_reprocess fact_action_cube_cache fact_action_security_filter fact_client_executions fact_object_change_journal fact_prompt_answers fact_report_columns fact_sql_stats fact_step_sequence |
historical_access_transactions historical_fact_action_cube_cache historical_fact_action_security_filter historical_fact_object_change_journal historical_fact_prompt_answers historical_fact_report_columns historical_fact_sql_stats historical_fact_step_sequence |
DELETE_ALL_FACTS_FROM_DELETED_OBJECTS
このコマンドは Platform Analytics ウェアハウス全体に含まれる削除済みオブジェクトによって生成されたすべてのファクト テーブルを削除します。次のテーブルが削除されます。
メタデータ | プロジェクト | 構成オブジェクト | その他のオブジェクト | プロジェクト オブジェクト | ファクト テーブル | ファクト テーブル (Postgres のみ) |
---|---|---|---|---|---|---|
|
lu_db_error |
lu_status |
access_transactions access_transactions_reprocess fact_action_cube_cache fact_action_security_filter fact_client_executions fact_object_change_journal fact_prompt_answers fact_report_columns fact_sql_stats fact_step_sequence |
historical_access_transactions historical_fact_action_cube_cache historical_fact_action_security_filter historical_fact_object_change_journal historical_fact_prompt_answers historical_fact_report_columns historical_fact_sql_stats historical_fact_step_sequence |
DELETE_ALL_FACTS_FROM_DELETED_PROJECTS
このコマンドは Platform Analytics ウェアハウス全体に含まれる削除済みプロジェクトによって生成されたすべてのファクト テーブルを削除します。次のテーブルが削除されます。
メタデータ | プロジェクト | 構成オブジェクト | その他のオブジェクト | プロジェクト オブジェクト | ファクト テーブル | ファクト テーブル (Postgres のみ) |
---|---|---|---|---|---|---|
|
lu_db_error |
lu_status |
access_transactions access_transactions_reprocess fact_action_cube_cache ファクト_アクション_セキュリティ_フィルター fact_client_executions fact_object_change_journal fact_prompt_answers fact_report_columns fact_sql_stats fact_step_sequence |
historical_access_transactions historical_fact_action_cube_cache historical_fact_action_security_filter historical_fact_object_change_journal historical_fact_prompt_answers historical_fact_report_columns historical_fact_sql_stats historical_fact_step_sequence |
DELETE_ALL_FACTS_FROM_DELETED_OBJECTS_IN_METADATA
このコマンドは指定したメタデータに含まれる削除済みオブジェクトによって生成されたすべてのファクト テーブルを削除します。次のテーブルが削除されます。
メタデータ | プロジェクト | 構成オブジェクト | その他のオブジェクト | プロジェクト オブジェクト | ファクト テーブル | ファクト テーブル (Postgres のみ) |
---|---|---|---|---|---|---|
|
lu_db_error |
lu_status |
access_transactions access_transactions_reprocess fact_action_cube_cache fact_client_executions fact_action_security_filter fact_object_change_journal fact_prompt_answers fact_report_columns fact_sql_stats fact_step_sequence |
historical_access_transactions historical_fact_action_cube_cache historical_fact_action_security_filter historical_fact_object_change_journal historical_fact_prompt_answers historical_fact_report_columns historical_fact_sql_stats historical_fact_step_sequence |
DELETE_ALL_FACTS_FROM_DELETED_PROJECTS_IN_METADATA
このコマンドは指定したメタデータに含まれる削除済みプロジェクトによって生成されたすべてのファクト テーブルを削除します。以下が削除されます。
メタデータ | プロジェクト | 構成オブジェクト | その他のオブジェクト | プロジェクト オブジェクト | ファクト テーブル | ファクト テーブル (Postgres のみ) |
---|---|---|---|---|---|---|
|
lu_db_error |
lu_status |
access_transactions access_transactions_reprocess fact_action_cube_cache fact_client_executions fact_action_security_filter fact_object_change_journal fact_prompt_answers fact_report_columns fact_sql_stats fact_step_sequence |
historical_access_transactions historical_fact_action_cube_cache historical_fact_action_security_filter historical_fact_object_change_journal historical_fact_prompt_answers historical_fact_report_columns historical_fact_sql_stats historical_fact_step_sequence |
DELETE_All_FACTS_FROM_DELETED_OBJECTS_IN_PROJECTS
このコマンドは指定したプロジェクト リストに含まれる削除済みオブジェクトによって生成されたすべてのファクト テーブルを削除します。以下が削除されます。
メタデータ | プロジェクト | 構成オブジェクト | その他のオブジェクト | プロジェクト オブジェクト | ファクト テーブル | ファクト テーブル (Postgres のみ) |
---|---|---|---|---|---|---|
|
lu_db_error |
lu_status |
access_transactions access_transactions_reprocess fact_action_cube_cache fact_client_executions fact_action_security_filter fact_object_change_journal fact_prompt_answers fact_report_columns fact_sql_stats fact_step_sequence |
historical_access_transactions historical_fact_action_cube_cache historical_fact_action_security_filter historical_fact_object_change_journal historical_fact_prompt_answers historical_fact_report_columns historical_fact_sql_stats historical_fact_step_sequence |
ステップ 1 - 削除構成ファイルを変更
選択: purgeConfig.yaml ファイルは Platform Analytics にあります conf ディレクトリ。実行する各コマンドのコメントを解除するだけで # 各行の先頭に表示されます以下の 6 つのパラメーターを使用して、さまざまな削除コマンドを制御できます。
-
doTestBeforePurge
:デフォルト値は true です。テストを省略するには、コマンド実行前に false に設定してください。 -
commandName
:実行するコマンドの名前です。 -
onlyDeletedProjects
:True に設定すると、削除済みプロジェクトのみが完全削除されます。 -
onlyDeletedObjects
:True に設定すると、削除済みオブジェクトのみが完全削除されます。 -
metadataList
:デフォルトでは、データは Platform Analytics ウェアハウスのみから削除されます。削除アクションを特定のメタデータのみに適用するには、メタデータ ID のリストを指定します。 -
projectList
:デフォルトでは、データは Platform Analytics ウェアハウスのみから削除されます。削除アクションを特定のプロジェクトのみに適用するには、プロジェクト GUID 値のリストを指定します。 -
daysToKeep
:この値を 0 にすると、すべてのファクト テーブルが削除されます。この値 が a だとすると、fabs(a) 日分のデータが保持されます。
doTestBeforePurge: true
commandsToExecute:
# - commandName: DELETE_ALL_DELETED_OBJECTS
# - commandName: DELETE_ALL_DELETED_PROJECTS
- commandName: DELETE_ALL_OBJECTS_IN_METADATA
metadataList:
- 7114993896978911232
# - metadataId_2
# - commandName: DELETE_ALL_DELETED_OBJECTS_IN_METADATA
# metadataList:
# - metadataId_1
# - metadataId_2
# - commandName: DELETE_ALL_DELETED_PROJECTS_IN_METADATA
# metadataList:
# - metadataId_1
# - metadataId_2
# - commandName: DELETE_ALL_OBJECTS_IN_PROJECTS
# metadataList:
# - metadataId
# projectList:
# - projectGuid_1
# - projectGuid_2
# - commandName: DELETE_ALL_DELETED_OBJECTS_IN_PROJECTS
# metadataList:
# - metadataId
# projectList:
# - projectGuid_1
# - projectGuid_2
# - commandName: DELETE_ALL_FACTS
# daysToKeep: 60
# - commandName: DELETE_ALL_FACTS_FROM_DELETED_OBJECTS
# daysToKeep: 60
# - commandName: DELETE_ALL_FACTS_FROM_DELETED_PROJECTS
# daysToKeep: 60
# - commandName: DELETE_ALL_FACTS_FROM_METADATA
# metadataList:
# - metadataId_1
# - metadataId_2
# daysToKeep: 60
# - commandName: DELETE_ALL_FACTS_FROM_DELETED_OBJECTS_IN_METADATA
# metadataList:
# - metadataId_1
# - metadataId_2
# daysToKeep: 60
# - commandName: DELETE_ALL_FACTS_FROM_DELETED_PROJECTS_IN_METADATA
# metadataList:
# - metadataId_1
# - metadataId_2
# daysToKeep: 60
# - commandName: DELETE_ALL_FACTS_FROM_PROJECTS
# metadataList:
# - metadataId
# projectList:
# - projectGuid_1
# - projectGuid_2
# daysToKeep: 60
# - commandName: DELETE_All_FACTS_FROM_DELETED_OBJECTS_IN_PROJECTS
# metadataList:
# - metadatatId
# projectList:
# - projectGuid_1
# - projectGuid_2
# daysToKeep: 60
ステップ 2 - データ削除を実行
- ターミナル ウィンドウを開き、Platform Analytics フォルダーに移動します。
-
次の削除スクリプトを実行します。
Windows: platform-analytics-purge-warehouse.ps1
Linux: ./platform-analytics-purge-warehouse.sh
-
有効化している場合 doTestBeforePurge 削除情報が表示されます。表示されたデータの削除を確認するには Y、中止するには N を入力してください。
削除統計の表示
Platform Analytics ウェアハウスには、実行された削除操作を追跡する purge_statistic テーブルがあります。各レコードには、次の重要な情報が含まれています。
id
:この列はレコードを区別するためのただの ID です。execute_time
:この列は、生成または削除 SQL クエリを実行する時間 (ミリ秒単位) です。insert_ts
:クエリが実行を終了した時間のタイムスタンプ。purge_command_id
:削除コマンドごとに、 purge_command_id 削除コマンドを特定できますpurge_command_name
:現在の削除コマンドの名前です。rows
:このクエリが適用される行の数。table_name
:クエリが適用されるテーブル。