New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IOTDB-587] New TsFile version 2 #855
Conversation
…to new_tsFile_v2
…to new_tsFile_v2
…to new_tsFile_v2
timeseriesMetaData.setMeasurementId(path.getMeasurement()); | ||
timeseriesMetaData.setTSDataType(entry.getValue().get(0).getDataType()); | ||
timeseriesMetaData.setOffsetOfChunkMetaDataList(out.getPosition()); | ||
Statistics<?> statistics = entry.getValue().get(0).getStatistics(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Repeat merge the statistics information
@@ -261,64 +264,55 @@ public void endFile(Schema schema) throws IOException { | |||
resourceLogger.info("{} writer is closed.", file.getName()); | |||
} | |||
canWrite = false; | |||
chunkMetadataListMap = new TreeMap<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why need to reapply memory here?
…into new_TsFile
Change to use duplicated path and datatypes in LastQueryExecutor
…h TimeseriesMetadata
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The mean differences of new TsFile are as below:
remove ChunkGroupMetadata
Modified Schema to support same measurement names with different data types
Performance Test:
4G memory.
1 Storage group,1 device,3000 measurements,each timeseries contains 600000 data points
IoTDB configuration:
enable_parameter_adapter=false
tsfile_size_threshold=1024L
memtable_size_threshold=5010241024L
Write cost:
new_TsFile:300569ms,14.76G,184 tsfiles
master:300418ms,14.73G,184 tsfiles
Query time cost:
new_TsFile: 1349ms
master: 2102ms
new_TsFile: 3268ms
master: 4621ms
new_TsFile: 647934ms
master: 814206ms
new_TsFile: 421ms
master: 1654ms
new_TsFile: 1887ms
master: 4231ms
new_TsFile: 3066ms
master: 6653ms
new_TsFile optimize cache: 1243ms
new_TsFile without optimize cache: 313599ms
master: 614638ms