Skip to content
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

add undo compressor log support #659

Merged
merged 2 commits into from
Feb 1, 2024
Merged

add undo compressor log support #659

merged 2 commits into from
Feb 1, 2024

Conversation

smiletrl
Copy link
Contributor

What this PR does:

add undo compressor config support

Which issue(s) this PR fixes:

Fixes #654

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


User will have compressor type log supported. The possible options are: 


- None
- Gzip
- Zip
- Sevenz
- Bzip2
- Lz4
- Zstd
- Deflate

and the config location is:

    undo:
      # Judge whether the before image and after image are the same,If it is the same, undo will not be recorded
      data-validation: true
      # Serialization method
      log-serialization: json
      # undo log table name
      log-table: undo_log
      # Only store modified fields
      only-care-update-columns: true
      compress:
        # Compression type
        type: zip
        #  Compression threshold Unit: k
        threshold: 64k

@wt-better
Copy link
Contributor

LGTM

@wt-better wt-better merged commit ff2bde2 into apache:master Feb 1, 2024
5 checks passed
@slievrly slievrly added this to the 2.0.0 milestone Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use undo compress type config usage
3 participants