-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from negbie/master
Sync
- Loading branch information
Showing
49 changed files
with
729 additions
and
527 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
-- name: drop-logs-table | ||
DROP TABLE logs_capture_all_TableDate; | ||
DROP TABLE logs_capture_all_DayDate; | ||
|
||
-- name: drop-report-table | ||
DROP TABLE report_capture_all_TableDate; | ||
DROP TABLE report_capture_all_DayDate; | ||
|
||
-- name: drop-rtcp-table | ||
DROP TABLE rtcp_capture_all_TableDate; | ||
DROP TABLE rtcp_capture_all_DayDate; | ||
|
||
-- name: drop-call-table | ||
DROP TABLE sip_capture_call_TableDate; | ||
DROP TABLE sip_capture_call_DayDate; | ||
|
||
-- name: drop-registration-table | ||
DROP TABLE sip_capture_registration_TableDate; | ||
DROP TABLE sip_capture_registration_DayDate; | ||
|
||
-- name: drop-rest-table | ||
DROP TABLE sip_capture_rest_DayDate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
-- name: create-partition-logs_capture | ||
ALTER TABLE logs_capture_all_TableDate ADD PARTITION (PARTITION pPartitionName_pnr0000 VALUES LESS THAN ( UNIX_TIMESTAMP('StartTime') )); | ||
ALTER TABLE logs_capture_all_DayDate ADD PARTITION (PARTITION DayDate_pnr0000 VALUES LESS THAN ( UNIX_TIMESTAMP('StartTime') )); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
-- name: create-partitionmax-logs_capture | ||
ALTER TABLE logs_capture_all_TableDate ADD PARTITION (PARTITION pmax VALUES LESS THAN MAXVALUE); | ||
ALTER TABLE logs_capture_all_DayDate ADD PARTITION (PARTITION pmax VALUES LESS THAN MAXVALUE); | ||
|
||
-- name: create-partitionmax-report_capture | ||
ALTER TABLE report_capture_all_TableDate ADD PARTITION (PARTITION pmax VALUES LESS THAN MAXVALUE); | ||
ALTER TABLE report_capture_all_DayDate ADD PARTITION (PARTITION pmax VALUES LESS THAN MAXVALUE); | ||
|
||
-- name: create-partitionmax-rtcp_capture | ||
ALTER TABLE rtcp_capture_all_TableDate ADD PARTITION (PARTITION pmax VALUES LESS THAN MAXVALUE); | ||
ALTER TABLE rtcp_capture_all_DayDate ADD PARTITION (PARTITION pmax VALUES LESS THAN MAXVALUE); | ||
|
||
-- name: create-partitionmax-sip_capture_call | ||
ALTER TABLE sip_capture_call_TableDate ADD PARTITION (PARTITION pmax VALUES LESS THAN MAXVALUE); | ||
ALTER TABLE sip_capture_call_DayDate ADD PARTITION (PARTITION pmax VALUES LESS THAN MAXVALUE); | ||
|
||
-- name: create-partitionmax-sip_capture_registration | ||
ALTER TABLE sip_capture_registration_TableDate ADD PARTITION (PARTITION pmax VALUES LESS THAN MAXVALUE); | ||
ALTER TABLE sip_capture_registration_DayDate ADD PARTITION (PARTITION pmax VALUES LESS THAN MAXVALUE); | ||
|
||
-- name: create-partitionmax-sip_capture_rest | ||
ALTER TABLE sip_capture_rest_DayDate ADD PARTITION (PARTITION pmax VALUES LESS THAN MAXVALUE); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
-- name: create-partition-report_capture | ||
ALTER TABLE report_capture_all_TableDate ADD PARTITION (PARTITION pPartitionName_pnr0000 VALUES LESS THAN ( UNIX_TIMESTAMP('StartTime') )); | ||
ALTER TABLE report_capture_all_DayDate ADD PARTITION (PARTITION DayDate_pnr0000 VALUES LESS THAN ( UNIX_TIMESTAMP('StartTime') )); | ||
|
||
-- name: create-partition-rtcp_capture | ||
ALTER TABLE rtcp_capture_all_TableDate ADD PARTITION (PARTITION pPartitionName_pnr0000 VALUES LESS THAN ( UNIX_TIMESTAMP('StartTime') )); | ||
ALTER TABLE rtcp_capture_all_DayDate ADD PARTITION (PARTITION DayDate_pnr0000 VALUES LESS THAN ( UNIX_TIMESTAMP('StartTime') )); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
-- name: create-partition-sip_capture_call | ||
ALTER TABLE sip_capture_call_TableDate ADD PARTITION (PARTITION pPartitionName_pnr0000 VALUES LESS THAN ( UNIX_TIMESTAMP('StartTime') )); | ||
ALTER TABLE sip_capture_call_DayDate ADD PARTITION (PARTITION DayDate_pnr0000 VALUES LESS THAN ( UNIX_TIMESTAMP('StartTime') )); | ||
|
||
-- name: create-partition-sip_capture_registration | ||
ALTER TABLE sip_capture_registration_TableDate ADD PARTITION (PARTITION pPartitionName_pnr0000 VALUES LESS THAN ( UNIX_TIMESTAMP('StartTime') )); | ||
ALTER TABLE sip_capture_registration_DayDate ADD PARTITION (PARTITION DayDate_pnr0000 VALUES LESS THAN ( UNIX_TIMESTAMP('StartTime') )); | ||
|
||
-- name: create-partition-sip_capture_rest | ||
ALTER TABLE sip_capture_rest_DayDate ADD PARTITION (PARTITION DayDate_pnr0000 VALUES LESS THAN ( UNIX_TIMESTAMP('StartTime') )); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
-- name: drop-partition-logs_capture | ||
DROP TABLE logs_capture_PartitionName_pnr0000; | ||
DROP TABLE logs_capture_DayDate_pnr0000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
-- name: drop-partition-report_capture | ||
DROP TABLE report_capture_PartitionName_pnr0000; | ||
DROP TABLE report_capture_DayDate_pnr0000; | ||
|
||
-- name: drop-partition-rtcp_capture | ||
DROP TABLE rtcp_capture_PartitionName_pnr0000; | ||
DROP TABLE rtcp_capture_DayDate_pnr0000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
-- name: drop-partition-sip_capture_call | ||
DROP TABLE sip_capture_call_PartitionName_pnr0000; | ||
DROP TABLE sip_capture_call_DayDate_pnr0000; | ||
|
||
-- name: drop-partition-sip_capture_registration | ||
DROP TABLE sip_capture_registration_PartitionName_pnr0000; | ||
DROP TABLE sip_capture_registration_DayDate_pnr0000; | ||
|
||
-- name: drop-partition-sip_capture_rest | ||
DROP TABLE sip_capture_rest_DayDate_pnr0000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
-- name: index-logs-date | ||
CREATE INDEX IF NOT EXISTS logs_capture_PartitionName_pnr0000_date ON logs_capture_PartitionName_pnr0000 (date); | ||
CREATE INDEX IF NOT EXISTS logs_capture_DayDate_pnr0000_date ON logs_capture_DayDate_pnr0000 (date); | ||
-- name: index-logs-correlation | ||
CREATE INDEX IF NOT EXISTS logs_capture_PartitionName_pnr0000_correlation_id ON logs_capture_PartitionName_pnr0000 (correlation_id); | ||
CREATE INDEX IF NOT EXISTS logs_capture_DayDate_pnr0000_correlation_id ON logs_capture_DayDate_pnr0000 (correlation_id); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
-- name: index-report-date | ||
CREATE INDEX IF NOT EXISTS report_capture_PartitionName_pnr0000_date ON report_capture_PartitionName_pnr0000 (date); | ||
CREATE INDEX IF NOT EXISTS report_capture_DayDate_pnr0000_date ON report_capture_DayDate_pnr0000 (date); | ||
-- name: index-report-correlation | ||
CREATE INDEX IF NOT EXISTS report_capture_PartitionName_pnr0000_correlation_id ON report_capture_PartitionName_pnr0000 (correlation_id); | ||
CREATE INDEX IF NOT EXISTS report_capture_DayDate_pnr0000_correlation_id ON report_capture_DayDate_pnr0000 (correlation_id); | ||
|
||
-- name: index-rtcp-date | ||
CREATE INDEX IF NOT EXISTS rtcp_capture_PartitionName_pnr0000_date ON rtcp_capture_PartitionName_pnr0000 (date); | ||
CREATE INDEX IF NOT EXISTS rtcp_capture_DayDate_pnr0000_date ON rtcp_capture_DayDate_pnr0000 (date); | ||
-- name: index-rtcp-correlation | ||
CREATE INDEX IF NOT EXISTS rtcp_capture_PartitionName_pnr0000_correlation_id ON rtcp_capture_PartitionName_pnr0000 (correlation_id); | ||
CREATE INDEX IF NOT EXISTS rtcp_capture_DayDate_pnr0000_correlation_id ON rtcp_capture_DayDate_pnr0000 (correlation_id); |
Oops, something went wrong.