// Data From MongoDB to Mysql public void EtlWorkerTask(string villageName) { // 1. Data from MongoDB List <ShellNode> villageNodes = _mongoDbUtil.GetMongoCollectionData(villageName); // 2. Data to Mysql if (villageNodes.Any()) { MySqlUtil mySqlUtil = new MySqlUtil(_mysqlConStr); mySqlUtil.BulkInsertNodes(villageName, villageNodes); UpdateAllLocationInfo(); mySqlUtil.Dispose(); } Console.WriteLine($"{DateTime.Now}: <{villageName}> Finished."); }