Questions tagged [litedb]

Use this tag for questions about LiteDB, which is a a free, open-source, embedded NoSQL database for .NET available via nuget or direct download.

LiteDB is a free, open-source, embedded NoSQL database for .NET inspired by MongoDB. Because it is a serverless document store, LiteDB can be "installed" via NuGet or by copying a dll into your project's bin folder.

Resources

Related Tags

183 questions
3
votes
1 answer

LiteDB null reference on insert

I ran into this problem where in I get a null reference exception on insert. I have two object Models UserInfo and UserConfig. On the first trial, UserConfig references a UserInfo instance public class UserConfigObject : IUserConfig { …
ReiSchneider
  • 185
  • 1
  • 12
3
votes
0 answers

LiteDB: Are Projections supported?

I'm trying to evaluate whether I can use LiteDB for one of my projects. I love MongoDB for its query capabilities and for the projections. See: Mongo Documentation The problem is, that I want to use a database that doesn't need a dedicated server…
Sebastian Krogull
  • 1,468
  • 1
  • 15
  • 31
2
votes
1 answer

LiteDB Insert list with BsonRef

Hi and thanks in advance everyone! I have a collection of the following objects: public class ItemsModel { public List IdCollection { get; set; } public string Name { get; set; } public int Weight { get; set; } } List
awp-sirius
  • 59
  • 6
2
votes
0 answers

LiteDb performance and limitation for production high data volume

I would like to know if anyone has experiece in using LiteDB for high volume data stream application on producution environment. What are its limitations and its pros? Or why it sould be preferred to MongoDB. My particular use case requires to…
2
votes
1 answer

LiteDB use same ID for different entries

I have a database where I'm trying to add messages and I use channelID for LiteDB id. I want to post more than 1 message in the same channel somehow but for that I would have to use the same ID somehow. private LiteDatabase Database { get; } =…
amur567
  • 67
  • 6
2
votes
0 answers

litedb database file size keeps increasing although deleting data

There are two applications, one console application keeps writing data to a litedb database continuously. The other console application reads data and deletes whatever was read var liteCollection = _liteDb.GetCollection("ColName"); var…
user584018
  • 10,186
  • 15
  • 74
  • 160
2
votes
1 answer

Getting error System.IO.IOException: 'The process cannot access the file'

I'm developing a small app with multithreading. I decided to use LiteDB for storing data. I was able to read, update, delete and insert on my database successfully . However, when I tried to add another thread which is also going to use same…
Cute Bear
  • 3,223
  • 13
  • 44
  • 69
2
votes
0 answers

Get LiteDB data in Python

Is there some python wrapper for LiteDB or some way to get data from LiteDB in this language? I need to parse some information and I don't find anything. Thank you.
2
votes
1 answer

LiteDB import a csv

I don’t know how I can import a Csv to LiteDB. I searched a lot but don’t get a solution. I’m using asp.net core 3.1 razor pages to build a one page website and I store my data in LiteDB. Now I have data to import, but I don’t know how.
serdar
  • 23
  • 3
2
votes
1 answer

LiteDb collection returns invalid data when searching by id

I try to find entity by its id in liteDb. But the wrong entity returns as a result (with another id). It's reproduced only on one entity for one client (other clients works good). I use LiteDB 4.1.2.0 in my program, also I tried to find the entity…
2
votes
0 answers

LiteDB query in 2 related Collections

I have a LiteDB database with 2 POCO classes Author that includes "Id" and "Name", as Properties Book that includes "Title" "Id" and "Author"(this property has a bson reference to the Author's collection) I'm trying to query the book collection…
cese01
  • 21
  • 2
2
votes
0 answers

C# Concurrent access to a LiteDB file over network

I'm developing a C# program which uses LiteDB to store data. During the design phase I was told it will be a single-user application, so LiteDB seemed like a pretty good solution. I had no experience with LiteDB before. However recently I've been…
Technical
  • 145
  • 1
  • 11
2
votes
2 answers

High memory usage when retrieving values from database

I have a project where I have to store 16 objects, each containing a list of 185 000 double's. Overall size of the saved object should be around 20-30 mb (sizeof(double) * 16 * 185 000), but when I try to retrieve it from database, the database…
FCin
  • 3,804
  • 4
  • 20
  • 49
2
votes
1 answer

Using R to work with liteDB

I'm looking for a way to (conveniently) use R to access data stored in a LiteDB. There does not seem to be a package but is there another way to make it accessible?
2
votes
2 answers

InvalidCastException when retrieving a record from LiteDB

I inserted a record via LiteDb.Shell.exe and when I try to retrieve the record in my code, it throws an InvalidCastException. If I try to find the record via the shell, I get an Unable to cast object of type 'System.Int32' to type…
Morgan Thrapp
  • 9,748
  • 3
  • 46
  • 67
1
2
3
12 13