![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
some questions abt table locking (assume using myisam) 1. If a slow query is running on a table, is update/insert operations blocked? 2. If a slow query is running on a table (slave), is replication operations blocked? |
#3
| |||
| |||
|
|
In other words: - reads are done concurrently - all writes (also append) are serialized - reads mix with append The replication SQL thread is not different from any other client thread in that respect. |
#4
| |||
| |||
|
|
Axel Schwenke =BCg=B9D=A1G - reads are done concurrently - all writes (also append) are serialized - reads mix with append The replication SQL thread is not different from any other client thread in that respect. ok, are there any method to reduce the priority of SELECT threads? since in our system, some slow query under heavy system load will affect the write performance, we want to give write a higher priority, is it possible? |
#5
| |||
| |||
|
|
"howa" <howachen (AT) gmail (DOT) com> wrote: Axel Schwenke =BCg=B9D=A1G If MyISAMs coarse locking kills the performance of your database, consider using InnoDB tables. |
#6
| |||
| |||
|
|
Axel Schwenke =BCg=B9D=A1G If MyISAMs coarse locking kills the performance of your database, consider using InnoDB tables. okay, it is a good practice to use InnoDB as Master, MyISAM as slave in this case? |
#7
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |