1 seconds to kill business analysis
Normal e-business process
(1) Inquiry goods, (2) Create Order, (3) deduct inventory, (4) Update order, (5) payment, (6) Seller issue
The characteristics of the second kill business
(1) Low price, (2) Large
In a relational database, the importance of transactions is self-evident, as long as the database slightly understand that the transaction has four basic properties of ACID, and we do not know how the database is the implementation of these four
Batch kill SQL statements that run for a long time in mysql, killmysql
KILL syntax
KILL [CONNECTION | QUERY] thread_idEach connection to mysqld runs in an independent thread. You can use the show processlist statement to check which threads are
Kill syntax
KILL [CONNECTION | QUERY] thread_idEach connection to the mysqld runs in a separate thread, and you can use the show Processlist statement to see which threads are running and terminate a thread with the kill thread_id statement.
Kill
Start transaction, commit and rollback syntaxStart Transaction | Begin [Work]commit [Work] [and [No] chain] [[No] release]rollback [work] [and [No] chain] [[No] release]set autocommit = { 0 | The 1}start transaction or BEGIN statement can begin a
mysql| Reference | Reference manual | Chinese MySQL 4.1.0 chinese reference manual---dog (heart sail) Translate MySQL Reference Manual for version 4.1.0-alpha.
6.7 MySQL Transaction and locking command 6.7.1 begin/commit/rollback syntax
By
In order to quickly synchronize data needs, I staged two Python scripts, that is, two process synchronization data opened, the results of the server reported the database deadlock exception, through the troubleshooting Code and database log
1. High Concurrency Optimization analysis
about concurrency
Concurrency does not go because when multiple threads access a row of data at the same time, a transaction is generated so that a write lock is generated, and every time a thread that
In order to quickly synchronize data needs, I staged two Python scripts, that is, two process synchronization data opened, the results of the server reported the database deadlock exception, through the troubleshooting Code and database log
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.