I have a very simple query I’m executing with PyMySQL:
SELECT `id` FROM `records` ORDER BY `id` DESC
records has over 1.5 million rows in it. id is a primary key.
Is this a limitation of PyMySQL? Is there something else I should be using if I’m querying so many rows at once?
You could break the query into several smaler queries: