Avoid potential database index overflow.