-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[HWKMETRICS-556] use TWCS for data_compressed table
We are also switching back to STCS for the data table because we are now doing range deletes as part of the compression job. Eventually I think we'll switch over to using what are essentially temporary tables for raw data that we just drop once we are done writing to them and have compressed the data. [HWKEMTRICS-556] license header [HWKMETRICS-556] this is what i get for trying to catch up with work on the weekend [HWKMETRICS-556] cehckstyle
- Loading branch information
John Sanda
committed
Feb 13, 2017
1 parent
7b85681
commit 2e64925
Showing
3 changed files
with
40 additions
and
3 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
36 changes: 36 additions & 0 deletions
36
core/schema/src/main/resources/org/hawkular/schema/updates/schema-0.23.0.groovy
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright 2014-2017 Red Hat, Inc. and/or its affiliates | ||
* and other contributors as indicated by the @author tags. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
schemaChange { | ||
version '6.0' | ||
author 'jsanda' | ||
tags '0.23.x' | ||
cql """ | ||
ALTER TABLE data_compressed WITH compaction = { | ||
'class': 'TimeWindowCompactionStrategy', | ||
'compaction_window_unit': 'DAYS', | ||
'compaction_window_size': '1' | ||
} | ||
""" | ||
} | ||
|
||
schemaChange { | ||
version '6.1' | ||
author 'jsanda' | ||
tags '0.23.x' | ||
cql "ALTER TABLE data WITH compaction = {'class': 'SizeTieredCompactionStrategy'}" | ||
} |