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

[QUESTION] Upgrading database created with v3 doesn't work in v5 #2524

Open
danyelsan10 opened this issue Jul 27, 2024 · 0 comments
Open

[QUESTION] Upgrading database created with v3 doesn't work in v5 #2524

danyelsan10 opened this issue Jul 27, 2024 · 0 comments
Labels

Comments

@danyelsan10
Copy link

Hi,

I have a problem connecting with LiteDB v5.0.16 a database created with LiteDB v3. I get "Stream was too long." with this stack:
System.IO.MemoryStream.Write(byte[], int, int)
LiteDB.Engine.FileReaderV7.ReadExtendData(uint)
LiteDB.Engine.FileReaderV7.GetDocuments(string)
LiteDB.Engine.LiteEngine.RebuildContent(LiteDB.Engine.IFileReader)
LiteDB.Engine.LiteEngine.Upgrade(string, string, LiteDB.Collation)
LiteDB.LiteDatabase.LiteDatabase(LiteDB.ConnectionString, LiteDB.BsonMapper)
I tried to do it in LiteDB Studio too and I get an OutOfMemory exception there too.
Could you tell me how to solve this?

Thank you,
Daniel

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