question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[QUESTION] disable creation of LiteDB-log

See original GitHub issue

when I create a database (let’s call him “DB”), it’s created me a file DB.db and DB-log.db. how I can create a database without the log file?

the c# code is: var db = new LiteDatabase(@"DB.db");

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
challamzinniagroupcommented, Feb 16, 2021

@lbnascimento Sorry to drag up an old post - but can you explain a little further about the checkpoint operation (or point me to the docs section, if such a section exists)? I am using LiteDB on an API that is always on. I wrap the connection in using statements so they are always disposed. Yet I recently revisited an old project and the db file shows a last updated timestamp of 8 months ago, while the log file shows last updated of today and is over 3GB in size. So the log file is clearly not being merged back into the db file, nor is it being deleted.

Any more info you could provide would be appreciated.

Thanks!

0reactions
lbnascimentocommented, Mar 12, 2020

@AntonyNET Just run a checkpoint operation after opening the datafile (actually, it should automatically run checkpoint when opening a datafile)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Privacy Policy
Protecting your private information is our priority. This Statement of Privacy applies to www.photoflex.com and Photoflex Division of PromarkBRANDS and governs ...
Read more >
Featured Pros Part 4 John Beckett
Q How do you decide upon the lighting when photographing celebrities? A – For a celebrity the first question we pose to them...
Read more >
Lakshit Chiranjiv Sagar Lakshit-Chiranjiv
Day of Week July Jul July Jul Sunday Sun 4 contributions on Sunday, July 24, 2022 3 contributions on Sunday, July 31... Monday Mon 22...
Read more >
one strobe vs multiple speedlite for indoor shooting
I hope its not a silly question but i was wondering if i should get one strobe or multiple speedilte in order to...
Read more >
Nikon 400mm f/2.8 as a portrait lens?
Hi, I shoot a lot of sports at times and have on occasion rented the 300mm f/2.8 VRI lens which is great for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found