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

Can SaveAs support iDataReader export to avoid the dataTable consuming too much memory #211

Closed
yfl8910 opened this issue Apr 21, 2021 · 5 comments
Labels
enhancement New feature or request

Comments

@yfl8910
Copy link
Contributor

yfl8910 commented Apr 21, 2021

No description provided.

@yfl8910 yfl8910 changed the title SaveAs能否支持IDataReader方式导出,以避免DataTable占用过多的内存 Can SaveAs support iDataReader export to avoid the dataTable consuming too much memory Apr 21, 2021
@yfl8910
Copy link
Contributor Author

yfl8910 commented Apr 21, 2021

epplus is support ws.Cells["A1"].LoadFromDataReader(reader, true),if this project is support DataReader , it will much better ,thanks

@shps951023 shps951023 added the enhancement New feature or request label Apr 22, 2021
@shps951023
Copy link
Member

Thanks, MiniExcel will support this feature.

@shps951023
Copy link
Member

image
image

@shps951023
Copy link
Member

Because the dimension needs to be placed in the header + the reason for the dimension size is only known after reading, so it needs to be rewritten once
image

shps951023 added a commit that referenced this issue Apr 30, 2021
- [New] Support QueryAsDataTable method [#216](#216)
- [New] SaveAs support IDataReader value parameter [#211](#211)
- [Bug] Fix numeric format string will be cast to numeric type [#I3OSKV](https://gitee.com/dotnetchina/MiniExcel/issues/I3OSKV)
- [Opt] Optimize SaveAs convert value type logic to improve performance
@shps951023
Copy link
Member

v 0.13.5 support this

MiniExcel.SaveAs(path, reader);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

2 participants