Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions BW_MonitoringData_Cleanup_Script/cleanupDB_Db2_script.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
--
-- Cleanup the data between the given timestamp.
-- Provide low_timestamp and high_timestamp value at line number 15,22,and 29.
-- (e.g.: DELETE FROM ActivityLoggingStats
-- WHERE timestmp
-- BETWEEN 1278563669021 AND 1578563669021;
-- ).
--

--
-- Delete data for table ActivityLoggingStats
--
DELETE FROM ActivityLoggingStats
WHERE timestmp
BETWEEN 0 AND 0;

--
-- Delete data for table ProcessInstanceLoggingStats
--
DELETE FROM ProcessInstanceLoggingStats
WHERE timestmp
BETWEEN 0 AND 0;

--
-- Delete data for table TransitionLoggingStats
--
DELETE FROM TransitionLoggingStats
WHERE timestmp
BETWEEN 0 and 0;
32 changes: 32 additions & 0 deletions BW_MonitoringData_Cleanup_Script/cleanupDB_Mariadb_script.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
--
-- Cleanup the data between the given timestamp.
-- Provide low_timestamp and high_timestamp value.
-- (e.g. @low_timestamp= 1578563669021;).
--

SET @low_timestamp= 1578563669021;
SET @high_timestamp = 1578563679090;
SET SQL_SAFE_UPDATES = 0;

--
-- Delete data for table ActivityLoggingStats
--
DELETE FROM ActivityLoggingStats
WHERE timestmp
BETWEEN @low_timestamp AND @high_timestamp;

--
-- Delete data for table ProcessInstanceLoggingStats
--
DELETE FROM ProcessInstanceLoggingStats
WHERE timestmp
BETWEEN @low_timestamp AND @high_timestamp;

--
-- Delete data for table TransitionLoggingStats
--
DELETE FROM TransitionLoggingStats
WHERE timestmp
BETWEEN @low_timestamp AND @high_timestamp;

SET SQL_SAFE_UPDATES = 1;