Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

call rundim(): #1205 Lock wait timeout exceeded; try restarting transaction #51

Open
ray58750034 opened this issue Feb 3, 2013 · 3 comments

Comments

@ray58750034
Copy link

archive hourly task always failed, and try to call rundim() throws "#1205 Lock wait timeout exceeded; try restarting transaction" exception.

Database: razor_fact_clientdata has 852,309 records, while razor_fact_usinglog has 1,301,013 records.

Do you have any idea how to optimize DB?

@cobub
Copy link
Owner

cobub commented Feb 7, 2013

can you provide which SQL is locked in rundim?

@ray58750034
Copy link
Author

Restart mysql solve this problem.

But the cron tasks cost too long time now, so we stopped the tasks.

When I "call rundim()" manually, the procedure cost 180 seconds.
call runfact('2013-02-07 10:00:00','2013-02-07 10:59:59') cost 25 seconds.
call runsum('2013-02-07 10:00:01') cost 210 seconds.

The max table I found in razor database is razor_clientusinglog ~ 3,419,202 records.

@cobub
Copy link
Owner

cobub commented Mar 28, 2013

It seems that speed of Store procedure is normal, maybe the cron task executed timeout.
Any more information can be provided about this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants