Closed goors closed 3 years ago
I don't understand the need for this. The session_id
column is already a primary key.
Wired thing is that select * from session where session_id=
is super slow and is is reported in log as slow query. After adding index it is fast as expected. I use aws mysql 8.x. So i am not really sure. It was strange to me as well because I see it is primary key. My app after adding index started working normally.