skip to Main Content

Mysql – Does InnoDB behind the scenes ALSO use table locks?

Connection1: BEGIN; SELECT * FROM world.city WHERE ID = 130 FOR SHARE; Connection2: SELECT engine, thread_id, object_schema, object_name, lock_type, lock_mode, lock_status, lock_data FROM performance_schema.data_locks; +--------+-----------+---------------+-------------+-----------+---------------+-------------+-----------+ | engine | thread_id | object_schema | object_name | lock_type | lock_mode | lock_status |…

VIEW QUESTION

MySQL and speed up

I have a mySQL database with several tables. But one tabel contains af 1,400,000 rows. I need to get the 50,000 rows with the highest value in one field. A field that counts visitors. SELECT uid, title, number, views FROM…

VIEW QUESTION

Mysql – How to convert a NOT IN query into a JOIN query

I have this following query that needs to be optimized Select 1 As status, e.entity_id, e.attribute_set_id, e.type_id, e.created_at, e.updated_at, e.sku, e.name, e.short_description, e.image, e.small_image, e.thumbnail, e.url_key, e.free, e.number_of_downloads, e.sentence1, e.url_path From catalog_product_flat_1 As e Inner Join catalog_category_product_index_store1 As cat_index On…

VIEW QUESTION
Back To Top
Search