[SOLVED] ERROR 1206 (HY000): The total number of locks exceeds the lock table size

We have a customized Openbravo POS v2.2 running with a dozen workstations operating 24x7 a year around. The size of the database has grown to 10GB, and the performance started to degrade so we decided to archive old data and start ...]