Hello this is my query and is taking around an hour to complete. The table is 7 million records in innodb. I have an index on (timeStamp,symbol). Test7() is a function for c