un'applicazione Foundation in produzione utilizza MySQL Server e si sincronizza con un'applicazione mobile Inde Cloud.
Analizzando i log di MySQL abbiamo rilevato una gran quantità di "delete zz_sync" che restano bloccate dai 40 agli 80 secondi; lascio un estratto dei log:
- Code: Select all
SET timestamp=1733385868;
delete from ZZ_SYNC where ID>1 and TS<{ts '2024-11-05 09:04:28'};
# Time: 2024-12-05T08:15:52.611936Z
# User@Host: root[root] @ mioHost [172.20.176.15] Id: 134
# Query_time: 50.492499 Lock_time: 50.456229 Rows_sent: 0 Rows_examined: 22106
SET timestamp=1733386502;
delete from ZZ_SYNC where ID>1 and TS<{ts '2024-11-05 09:15:02'};
# Time: 2024-12-05T08:16:42.846990Z
# User@Host: root[root] @ mioHost [172.20.176.15] Id: 135
# Query_time: 62.348339 Lock_time: 62.311804 Rows_sent: 0 Rows_examined: 22106
SET timestamp=1733386540;
delete from ZZ_SYNC where ID>1 and TS<{ts '2024-11-05 09:15:40'};
# Time: 2024-12-05T08:17:33.240792Z
# User@Host: root[root] @ mioHost [172.20.176.15] Id: 136
# Query_time: 82.696433 Lock_time: 82.660990 Rows_sent: 0 Rows_examined: 22106
SET timestamp=1733386570;
delete from ZZ_SYNC where ID>1 and TS<{ts '2024-11-05 09:16:10'};
# Time: 2024-12-05T08:19:12.464384Z
# User@Host: root[root] @ mioHost [172.20.176.15] Id: 138
# Query_time: 50.473609 Lock_time: 50.430905 Rows_sent: 0 Rows_examined: 22106
L'analisi fatta ci porta a credere che la tabella zz_sync resta bloccata, finendo per impedire completamente la sincronizzazione dei dispositivi mobile.
Questa problematica rientra riavviando il servizio mysqldb.exe
Qualcun altro si è imbattuto in questo "blocco della zz_sync"?
Esiste un modo per disabilitare tutte queste delete e controllare quando viene ripulita la zz_sync?