docs: add debugging SQLite information

This commit is contained in:
Alex Gleason 2024-03-02 17:53:43 -06:00
parent dc57415df3
commit ad59c24f77
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 11 additions and 1 deletions

View File

@ -14,4 +14,14 @@ To access the debugger remotely, you can use SSH port forwarding. Run this comma
ssh -L 9229:localhost:9229 <user>@<host>
```
Then, in Chromium, go to `chrome://inspect` and the Ditto server should be available.
Then, in Chromium, go to `chrome://inspect` and the Ditto server should be available.
## SQLite performance
To track slow queries, first set `DEBUG=ditto:sqlite.worker` in the environment so only SQLite logs are shown.
Then, grep for any logs above 0.001s:
```sh
journalctl -fu ditto | grep -v '(0.00s)'
```