MySQL Forums
Forum List  »  Optimizer & Parser

update query optimization
Posted by: rajesh vijayan
Date: April 02, 2009 02:17AM

hi,

here is the simple update query which takes more than 20sec

UPDATE audience_member_reg SET completed_page_no = 2, reg_datetime = '2009-03-28 07:13:45' WHERE audience_member_reg_id = 6640737;

explain statements are,

mysql> explain select completed_page_no,reg_datetime from audience_member_reg where audience_member_reg_id = 6640737\G
*************************** 1. row ***************************
id: 1
select_type: SIMPLE
table: NULL
type: NULL
possible_keys: NULL
key: NULL
key_len: NULL
ref: NULL
rows: NULL
Extra: Impossible WHERE noticed after reading const tables
1 row in set (0.00 sec)


is there anyway this query can be improved upon? could anyone please help me out. thanks for your response.

Options: ReplyQuote


Subject
Views
Written By
Posted
update query optimization
4181
April 02, 2009 02:17AM
2443
April 03, 2009 06:43PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.