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

why are there three files for one database? #1573

Closed
MorTazaFarYabi opened this issue Mar 18, 2024 · 1 comment
Closed

why are there three files for one database? #1573

MorTazaFarYabi opened this issue Mar 18, 2024 · 1 comment

Comments

@MorTazaFarYabi
Copy link

why does tortoise orm create 3 files for one sqlite database? (I could not find any explanations for it online)
I have a deployed project that uses tortoise orm and I need to remove a row from one of the tables manually. Seeing as there are three files the question is which file should I delete that row from?

@MorTazaFarYabi MorTazaFarYabi changed the title why 3 databases why are there three files for one database? Mar 18, 2024
@vlakius
Copy link

vlakius commented Apr 24, 2024

This is how Asynchronous SQLite works -> https://www.sqlite.org/asyncvfs.html

TLDR: when you save some data it doesnt write it directly to the database. it write a sort of "log" file and the execute the data modification in a separate thread leaving the main thread free to receive other request

@abondar abondar closed this as completed May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants