Fix the data dropping issues when ingest large amount of resources