Hi
I need to delete about 90% of the old orders from the db and this will free up a lot of space but, from what I've read, I will have to do an OPTIMIZE TABLE to defragment the tables.
I have an order header table 'comm_en' that has an auto-increment col for the order number and an order items table 'comm_li' where each line belonging to an order is refernced using the order number from the 'comm_en' table.
If I do OPTIMIZE TABLE will this have any effect on the auto-increment values in 'comm_en' ? Is there any risk of the auto-increment being reset ?
I had a look in the manual but it's not too clear https://dev.mysql.com/doc/refman/5.1/en/optimize-table.html
thanks