mysql - Preventing Database Locking during updates -
i pulling large amount of data (700k lines) 1 database (source database), performing data manipulation, inserting/updating database (lookup database) altered data.
the lookup database being accessed users regularly throughout day. performing select statements. updates lookup database occur hourly. size of data in source database increases, i'm noticing higher numbers of "lock wait timeout exceeded" errors when updating lookup database. assumption correct resulting select statements , update statements accessing same data? make sense larger number of updates occurring more hit data being accessed users.
in attempts fix situation i've increased lock wait timeout 120 (up 60) has had little effect.
one thought had update new table in lookup database, swap (in software users using) database queries go to. other ideas how might resolve issue?
i'm not sure if it's relevant i'm using mysql , 2 databases on separate servers.
thanks!
Comments
Post a Comment