skip to Main Content

Mysql – MAX in subquery causes index scan

I'm having a hard time understanding the behavior of my queries. Given following tables: CREATE TABLE messages ( id BINARY(16) NOT NULL PRIMARY KEY, chat_id VARCHAR(128) NOT NULL, author_id VARCHAR(128) NOT NULL, created_at BIGINT SIGNED NOT NULL, content VARCHAR(500) CHARACTER…

VIEW QUESTION
Back To Top
Search