insert and delete in batch.