docs: add debugging SQLite information
This commit is contained in:
parent
dc57415df3
commit
ad59c24f77
|
@ -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)'
|
||||
```
|
Loading…
Reference in New Issue