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

Insert large data (over 2GB) occurs OverflowException, how to solve it? #1233

Open
liujian619 opened this issue Jun 14, 2024 · 0 comments
Open

Comments

@liujian619
Copy link

I split a file into chunks, and then insert the chunk data into sqlite db file. As below

foreach (var chunk in chunks)
{
    Connection.Insert(chunk);
}

When the file size is less than 2GB, all is ok.
But if the file size is more than 2GB, it occurs an OverflowException while the sum of the chunks is just over 2GB.

Why? And how to solve it?

Thanks!!

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

No branches or pull requests

1 participant