I've had problems lately with a few queries on my database, this is due to the fact that one of my database tables has expanded from 50,000 rows to 1,000,000 rows to 2,000,000.
the table books
has 2,000,000 records of books and has all kinds of information ranging from the ranking of the book to size of the book.
I tried running a simple query...
SELECT isbn FROM books WHERE rank < 100000
After waiting for 10 minutes I had to terminate the query as it just kept stalling, I do not have this problem when querying other tables so I assume the problem is with the size of the table.
I have started reading up indexing and so I would like to know if this is the best way to remedy my situation and if not what would be?