-
Notifications
You must be signed in to change notification settings - Fork 37
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
Read in batches #94
Comments
What is your PowerShell module intending to do? You shouldn't have to do special batching at all. The |
Perfect! |
If you are trying to load data into SqlServer (or any other relational database) I would suggest you avoid using an intermediate DataTable and just feed the CsvDataReader directly to SqlBulkCopy (other providers have similar capabilities). Here is an example:
|
Copy that. SQL is definitely a target together with Postgres. |
@opustecnica shoot me a notification when your powershell module is released. I'd be interested in reviewing it. |
Advanced apologies if this is documented somewhere and I, obviously, failed to locate the hint.
I am in the process of writing a PowerShell module leveraging your, fast, libraries. I am looking for a method to Read/ReadAsync in batches in order to process large (> 1GB) CSV files without overtaxing the system. I have seen this (https://stackoverflow.com/questions/66570865/memorystream-data-getting-truncated) and the "RangeDataReader" would work. Is this still the advised approach? Which library contains the derivative class?
Many thanks in advance
The text was updated successfully, but these errors were encountered: