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

fix(imports) possible fix for imports running out of memory #29169

Merged
merged 10 commits into from
Aug 29, 2024

Conversation

wezell
Copy link
Contributor

@wezell wezell commented Jul 9, 2024

This does a few things:

  • Removes reading the file in as a byte[] and instead passes around a File object
  • Changes how the import is run inline (helpful for glowroot traces) or to use the DotSubmitter thread pool. Config var is IMPORT_CONTENTLETS_ASYNC
  • Commit Granularity changed to 100, meaning every 100 contentlets will be committed and a new transaction will be started.
  • Copied CSV file to tmp dir.

ref: #29162

This PR fixes: #29162

@wezell wezell linked an issue Jul 9, 2024 that may be closed by this pull request
Copy link

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the stale label Aug 23, 2024
@jdotcms jdotcms enabled auto-merge August 23, 2024 19:06
@erickgonzalez erickgonzalez disabled auto-merge August 27, 2024 16:39
Copy link
Contributor Author

@wezell wezell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work Erick

@erickgonzalez erickgonzalez added this pull request to the merge queue Aug 29, 2024
Merged via the queue into master with commit 0e6f1cf Aug 29, 2024
30 of 31 checks passed
@erickgonzalez erickgonzalez deleted the issue-29162-slow-imports branch August 29, 2024 17:16
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.

Slow performance with imports in some cases
4 participants