(Ierakstīt jaunu komentāru)
Bypassing the SQL layer can lead to incomplete results. For instance, if a DELETE query deletes 10000 rows, a concurrent SELECT query will usually either return these 10000 rows (is executed before the DELETE), or none of these rows (if executer afterwards). By using HANDLER...READ instead of SELECT, you can get 0, 10000 or maybe 4736 rows because the data will be fetch while the DELETE query will be in progress.
(Atbildēt uz šo) (Diskusija)
(Atbildēt uz šo) (Iepriekšējais)