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
2
votes
2 answers

Lite DB not finding inner object query

I have two objects. [DataContract] public class Record { [DataMember] public string Id { get; set; } } And this class: public class BatteryStatus : Record { [DataMember] public DateTime RetrieveTime { get; set; } } I'm using…
Kat
  • 2,460
  • 2
  • 36
  • 70
1
vote
0 answers

Is LiteDB loaded from disk to memory once or upon every query?

This may be a noob question, sorry! I know that the OS uses caching and other tricks, but let's ignore it for the sake of this question. I was wondering whether any time I query my liteDB instance does it access the disk? Or is the liteDB instance…
Ungoliant
  • 133
  • 2
  • 14
1
vote
1 answer

In litedb,How can I get the _id value?

As shown below, I inserted an element into the document, and it automatically generated an _id of type Object for me. So how do I use the existing model to get the value of this _id? using LiteDB; using (var db = new…
Nyakohub
  • 11
  • 1
1
vote
2 answers

Use static class in ASP.NET Web API

I am posting this question using an automatic translation. Please forgive any grammatical errors. I have built an application using the .NET framework and the ASP.net Web API. I have split the virtual path for each customer region within a site…
hiro
  • 11
  • 3
1
vote
2 answers

Is it really beneficial to use asynchronous calls when using embedded databases such as SQLite in the context of an ASP.NET app?

I'm developing an ASP.NET Core web app (Blazor Server-side to be exact) and I was checking a .NET based embedded database called LiteDB and I noticed that it still lacks async calls while most SQLite wrappers have them (for example Dapper ORM for…
wiki
  • 1,877
  • 2
  • 31
  • 47
1
vote
0 answers

LiteDB ideal class setup for updating part of a document

This is my first usage of LiteDB and NoSQL. I am trying to represent the following relationships: There is a collection of Users There is a collection of Groupss Each Groups can contain multiple users. Different Groupss can contain the same…
Rotem
  • 21,452
  • 6
  • 62
  • 109
1
vote
2 answers

Prevent object dispose inside using block

Workflow: I have a winform app with two forms, in the 1st form I query a liteDB and it manipulates an IEnumerable instance inside a using block with retrieved data. IEnumerable searchResult; using(var db = new…
1
vote
0 answers

LiteDB FileStreamFactory.GetStream (System.Boolean canWrite, System.Boolean sequencial) System.IO.IOException: Sharing violation on path /data/user/0/

I'm having this issue on Litedb with Android app (built with xamarin forms), Version: 5.0.11 Note: I ensure that there is only one instance of the LiteDatabase in my app, by registering it as a singleton in my service provider at startup. I Dispose…
Damien Doumer
  • 1,991
  • 1
  • 18
  • 33
1
vote
0 answers

LiteDB "not in" query in powershell

I'm new to noSql databases, I can't figure out how to build a query like this "SELECT $ FROM MY_TABLE WHERE MY_FIELD NOT IN ("VALUE#1", ... "VALUE#N")" in LiteDB and another difficulty is that I may not know how many values will be in the…
1
vote
1 answer

LiteDB Studio fail to connect LiteDB

I have a encrypted LiteDB, When i opened with LiteDB studio, without enter password, i got the following error. after enter password, i got this error Any expert can help me on this?
1
vote
0 answers

LiteDb.Engine.PageBuffer memory leak

We are running a simple PoC with LiteDB which is reading / writing / updating a local database concurrently. This causes an infinite and very fast memory leak attributable to 8Kb LiteDb.Engine.PageBuffer objects. Doing these operations sequentially…
James Harcourt
  • 6,017
  • 4
  • 22
  • 42
1
vote
1 answer

Is LiteDB known to work with dotnet Core 5.0?

I am about to port a Windows forms application (dotnet 4.7x) to dotNet Core 5. The application uses LiteDB (all else is straight c# winforms stuff). Before starting I need to determine if LiteDB 5.10 will work with Core 5.0.
Ed Porter
  • 11
  • 1
1
vote
1 answer

how to decrease the size of db file that created by LiteDb after i has deleted about 200 records

How to decrease the size of db file that created by LiteDb , after I has deleted about 200 records; I have seen all issues of the litedb doc, but no satisfactory answer;
Peter Xiao
  • 11
  • 3
1
vote
1 answer

LiteDB exception when deployed to ARM device developed withUnity 2019.4.12f1

I'm trying to use LiteDB (net45, V5.0.9) in Unity 2019 targeting an ARM device. The sample code (provided in the docs) to perform CRUD operations works fine in the Unity editor but in the device I'm getting this…
Vip12
  • 21
  • 4
1
vote
0 answers

LiteDB.LiteException: File is not a valid LiteDB database format or contains a invalid password

Using LiteDB for my Xamarin.android project. Just updated the nuget package to 5.0.9 and this error occurs. LiteDB.LiteException: File is not a valid LiteDB database format or contains a invalid password.
Loc Dai Le
  • 1,661
  • 4
  • 35
  • 70
1 2
3
12 13