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

LiteDB Constructor fails when trying to load huge DB file 50GB #2441

Open
msbasanth opened this issue Mar 4, 2024 · 0 comments
Open

LiteDB Constructor fails when trying to load huge DB file 50GB #2441

msbasanth opened this issue Mar 4, 2024 · 0 comments
Labels

Comments

@msbasanth
Copy link

msbasanth commented Mar 4, 2024

Version
5.0.16

Describe the bug
LiteDB Constructor fails when trying to load a huge DB file 50GB.

Database = new LiteDatabase("C:\\test.localdb", BsonMapper);

When I debug the breakpoint reaches till here and then fails (some internal error) not thrown as exception. But the execution continues.

Code to Reproduce

Serializer = new BsonSerializer();
BsonMapper = Serializer.CreateMapper();
Database = new LiteDatabase("C:\\test.localdb", BsonMapper);

Here the test.localdb is >50GB in size.

Expected behavior
Should be able to handle DBs of size >50Gb

Screenshots/Stacktrace
No exception thrown so as to capture it, but the instance is corrupted then onwards.

Any DB size limitation because of which we are unable to load liteDB DB or create a litedb instance in memory? Does it try to load the file in memory when constructor is running?

@msbasanth msbasanth added the bug label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant