Limit field lengths before storing in database.