Electric.ShapeCache.FileStorage.Compaction (electric v1.0.23)

View Source

Summary

Functions

compact_in_place(arg, chunk_size \\ LogChunker.default_chunk_size_threshold(), merge_fun \\ &LogItems.merge_updates/2)

@spec compact_in_place(
  {String.t(), String.t(), String.t()},
  non_neg_integer(),
  (any(), any() -> any())
) ::
  {String.t(), String.t(), String.t()}

merge_and_compact(log1, log2, merged_log_path, chunk_size \\ LogChunker.default_chunk_size_threshold())

rm_log(arg)