Skip to content

some questions on the article using-litedb-in-an-asp-net-core-api #423

Answered by georgekosmidis
mcshaz asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you very much for the comment!

I am sorry for the delay but i am currently on a paternal leave and it will be some time until i return!

I will extend my answer a later time, but here is a quick one - its all from my mobile so i hope i remember the article and sample repo and my comments are correct!

  1. Its best practice for web to use a single instance - you are avoiding expensive file operations (lock, open, close, etc). What you are suggesting seems like returning a new instance of LiteDatabase every time, like a transient approach. Is this correct? Please include a bigger sample if i didn't get it!
  2. You are right, my sample needs indexes. I would try to do it once though and not in …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by georgekosmidis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants