I have a Sqlite database which I want to check the indexes are correct. MS SQL Analyser is great at breaking down the query execution and utilised indexes.
Is there a similar tool for Sqlite?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I know of no pretty graphical tools, but all of the information you seek is available from the
EXPLAINkeyword.Consider this database:
A query predicated on
emailwill not use an index:Whereas a query predicated on name will use the
user_namesindex:Using
EXPLAINdoes require coming to grips with SQLite’s virtual machine, VDBE:http://www.sqlite.org/opcode.html
But this is not as hard as it looks, and gives you the complete story about your query.