mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-01 14:47:38 +00:00
8dce4eb189
- Move uniqueFields from rows to blockStreamMerger struct. This allows localizing all the references to uniqueFields inside blockStreamMerger.mustWriteBlock(), which should improve readability and maintainability of the code. - Remove logging of the event when blocks cannot be merged because they contain more than maxColumnsPerBlock, since the provided logging didn't provide the solution for the issue with too many columns. I couldn't figure out the proper solution, which could be helpful for end user, so decided to remove the logging until we find the solution. This commit also contains the following additional changes: - It truncates field names longer than 128 chars during logs ingestion. This should prevent from ingesting bogus field names. This also should prevent from too big columnsHeader blocks, which could negatively affect search query performance, since columnsHeader is read on every scan of the corresponding data block. - It limits the maximum length of const column value to 256. Longer values are stored in an ordinary columns. This helps limiting the size of columnsHeader blocks and improving search query performance by avoiding reading too long const columns on every scan of the corresponding data block. - It deduplicates columns with identical names during data ingestion and background merging. Previously it was possible to pass columns with duplicate names to block.mustInitFromRows(), and they were stored as is in the block. Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4762 Updates https://github.com/VictoriaMetrics/VictoriaMetrics/pull/4969 |
||
---|---|---|
.. | ||
arena.go | ||
block.go | ||
block_data.go | ||
block_data_test.go | ||
block_header.go | ||
block_header_test.go | ||
block_search.go | ||
block_stream_merger.go | ||
block_stream_reader.go | ||
block_stream_writer.go | ||
block_test.go | ||
block_timing_test.go | ||
bloomfilter.go | ||
bloomfilter_test.go | ||
consts.go | ||
datadb.go | ||
datadb_test.go | ||
encoding.go | ||
encoding_test.go | ||
encoding_timing_test.go | ||
filenames.go | ||
filters.go | ||
filters_test.go | ||
hash128.go | ||
hash128_test.go | ||
hash128_timing_test.go | ||
index_block_header.go | ||
index_block_header_test.go | ||
indexdb.go | ||
indexdb_test.go | ||
inmemory_part.go | ||
inmemory_part_test.go | ||
inmemory_part_timing_test.go | ||
log_rows.go | ||
log_rows_timing_test.go | ||
parser.go | ||
parser_test.go | ||
part.go | ||
part_header.go | ||
part_header_test.go | ||
partition.go | ||
partition_test.go | ||
rows.go | ||
rows_test.go | ||
storage.go | ||
storage_search.go | ||
storage_search_test.go | ||
storage_test.go | ||
stream_filter.go | ||
stream_id.go | ||
stream_id_test.go | ||
stream_tags.go | ||
tenant_id.go | ||
tenant_id_test.go | ||
tokenizer.go | ||
tokenizer_test.go | ||
tokenizer_timing_test.go | ||
u128.go | ||
u128_test.go | ||
values_encoder.go | ||
values_encoder_test.go | ||
values_encoder_timing_test.go |