Skip to content

Commit

Permalink
perf: set db to read only mode
Browse files Browse the repository at this point in the history
  • Loading branch information
t03i committed Oct 21, 2024
1 parent 2a3e017 commit 20e6d8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def server_host(self) -> str:
@computed_field # type: ignore[prop-decorator]
@property
def SQL_ALCHEMY_DB_URL(self) -> AnyUrl:
return f"sqlite:///{self.SQLITE_DATABASE_PATH}"
return f"sqlite:///{self.SQLITE_DATABASE_PATH}?mode=ro"


settings = Settings() # type: ignore

0 comments on commit 20e6d8e

Please sign in to comment.