Error: Query Error: The total number of locks exceeds the lock table size