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

SPARK-364 overwrite to keep collection options #123

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

VVBondarenko
Copy link

added way to configure collection truncate approach in overwrite writing mode.

new write option: truncate_mode might have one of the following options:

  • DROP same as before. Just drop collection and create new one with default configuration
  • DELETE_ALL expensive delete all query. Keeps original collection, but slowly deletes all documents from it
  • RECREATE saves previous options and indexes, drops the collection, creates new collection with the same options and indexes

@jyemin jyemin marked this pull request as draft November 18, 2024 22:03
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.

2 participants