Home > database > Page refresh to perform an update statement is stuck, what a great god, look at how to solve?
Page refresh to perform an update statement is stuck, what a great god, look at how to solve?
Time:10-25
Execute the SQL is: the update yj_yyrg set ishandle='2', user='ss', the username='yangzh', the date='20190826', time='114332' type='2', id='F201908260005' where model_id=120 and row_id=40, can quickly perform in a test environment in the past, can open the page, change an environment not, page has been card, had a this kind of situation, before colleagues to execute the alter table move solved, this time is not line, who is a great god to look at, very grateful!
CodePudding user response:
This statement is very simple, only consider an increase in the index, model_id and row_id composite index,
CodePudding user response:
This statement you want to update the amount of data that stable instability? Will the data change possible? If not, then may be encountered lock waits, check the v $session inside the update session a few field values: event, blocking_instance, blocking_session, is under the blocking_instance blocking_session will be blocked, you look at the lock is held, blocking your session in the stem, the kill was killed