Bonjour,

J'utilise MySQL 5.0 avec des tables InnoDB et j'ai un petit soucis.

J'ai une table contenant 30 000 000 de lignes que je veux updater.

Les données de tables sont :
Table_a
id INT AUTO_INCREMENT PRIMARY KEY,
probe_rating INT,
probe_tm INT,
probe_hp INT,
probe_sd INT,
probe_run INT

L'update se fait sur toutes les lignes et est plutôt simple :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
update Table_a SET probe_rating = calc_rating(probe_tm, probe_hp, probe_sd, probe_run)
où calc_rating() est une fonction de calcul très simple.

Là, j'ai une erreur 'Lock wait timout exceeded, try to restart transaction'.

Sauriez-vous comment fixer ce problème ?

En vous remerciant,

C. Tobini