UpdateAllSetting issued a separate SELECT plus Save per field in its own autocommit transaction, so each panel-settings save triggered 100+ SQLite write transactions (one fsync each). Wrap the whole update in a single transaction, read existing rows once, and skip unchanged values. |
||
|---|---|---|
| .. | ||
| config | ||
| database | ||
| eventbus | ||
| logger | ||
| mtproto | ||
| sub | ||
| util | ||
| web | ||
| xray | ||