mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-19 15:30:17 +00:00

This should improve query performance for logs with hundreds of fields (aka wide events).
Previously there was a high chance that the data for multiple log fields is stored in the same file.
This could result in query performance slowdown and/or increased disk read IO,
since the operating system could read unnecessary data for the fields, which aren't used in the query.
Now log fields are guaranteed to be stored in separate files until the number of fields exceeds 256.
After that multiple log fields start sharing files.
(cherry picked from commit 9bb5ba5d2f
)
24 lines
819 B
Go
24 lines
819 B
Go
package logstorage
|
|
|
|
const (
|
|
columnNamesFilename = "column_names.bin"
|
|
columnIdxsFilename = "column_idxs.bin"
|
|
metaindexFilename = "metaindex.bin"
|
|
indexFilename = "index.bin"
|
|
columnsHeaderIndexFilename = "columns_header_index.bin"
|
|
columnsHeaderFilename = "columns_header.bin"
|
|
timestampsFilename = "timestamps.bin"
|
|
oldValuesFilename = "field_values.bin"
|
|
oldBloomFilename = "field_bloom.bin"
|
|
valuesFilename = "values.bin"
|
|
bloomFilename = "bloom.bin"
|
|
messageValuesFilename = "message_values.bin"
|
|
messageBloomFilename = "message_bloom.bin"
|
|
|
|
metadataFilename = "metadata.json"
|
|
partsFilename = "parts.json"
|
|
|
|
indexdbDirname = "indexdb"
|
|
datadbDirname = "datadb"
|
|
partitionsDirname = "partitions"
|
|
)
|