Skip to content

feature:low memory to export Excel #2524

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

Conversation

guanguoliang
Copy link

By adjusting and rewriting the order of save method, we use another way to "save" to reduce the memory use when we export a lot of data.

This is:

- [ yes] a new feature

Checklist:

Why this change is needed?

korolguan added 14 commits January 24, 2022 18:18
@guanguoliang
Copy link
Author

@MarkBaker please help review this

// Get row dimension
$rowDimension = $pSheet->getRowDimension($currentRow);
// Write current row?
$writeCurrentRow = isset($cellsByRow[$stringCurrentRow]) || $rowDimension->getRowHeight() >= 0 || $rowDimension->getVisible() == false || $rowDimension->getCollapsed() == true || $rowDimension->getOutlineLevel() > 0 || $rowDimension->getXfIndex() !== null;
Copy link
Author

Choose a reason for hiding this comment

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

this check failure of phpstan is a bug , please view this: phpstan/phpstan#3170

korolguan and others added 2 commits February 11, 2022 22:31
@MarkBaker MarkBaker closed this Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants