Files
mirror-3x-ui/.github
Hamed efb6c6d579 perf(traffic): skip unchanged client lifecycle writes (#7204)
A full inbound save ran the lifecycle UPDATE on client_traffics for every client of the inbound, even when quota, expiry, renewal settings and the enable flag already matched. On PostgreSQL each of those is a new row version and WAL, on every stream-settings edit of a large inbound.

Guard the same UPDATE with a NULL-safe IS DISTINCT FROM over the eight columns it assigns, so the database writes only a row that actually differs and still repairs one that drifted. The PostgreSQL CI job runs the lifecycle suite, including a row-lock check on a second connection.

Closes #7202
2026-11-25 15:23:19 +03:30
..