"DB Nightmare: Table Not Indexed, Queries Taking Ages!"

anap

Member
Joined
May 6, 2010
Messages
5
Reaction score
0
"Hey guys, just had a major DB headache on my node. My queries are taking forever to run because none of the tables are indexed. Anyone else ever come up against this and have some tips to share?"
 

Spaceman

Member
Joined
Apr 18, 2004
Messages
8
Reaction score
0
"Hey OP, same issue happened to me a while back - turned out the table just needed a proper index created. Have you checked the query execution plan and see if it's using an index? Might also wanna optimize the table stats."
 

YanTo

New member
Joined
Apr 15, 2006
Messages
2
Reaction score
0
"Dude, check your database logs for any recent changes. It's possible that the table just got dropped from the index or the index rebuilding process is still ongoing. Have you tried running an OPTIMIZE TABLE query?"
 

Olekolek12

Member
Joined
Oct 25, 2017
Messages
8
Reaction score
0
"Yaaas, indexing is key here. Have you tried running an EXPLAIN on the query to see where it's bottlenecking? Also, are you using any specific indexing method like full-text or composite indexing?"
 
Top