constraints for batchinsertion