Please tell me how to correctly implement the data parser. Description: I have a long list, all data from this list is deleted once a month, so a rather long one is obtained. Previously, I didn’t really work with perssers, I’m interested in this logic. At the moment: (in each line of the list is indicated id time count number)
Открываем файл. Создаю подключения с БД. цикл{ выбираю строку проверяю не пуста ли она запрашиваю из таблицы данные(обычный select сравниваю по id и времени) если запись в базе присутствует, переходим к следующей строке если нет, то заносим в базу данных данные из строки. } закрыли подключение. закрыли файл.
The resulting heap of mysql queries scares me ... What do you think about this?