I am uploading data into PostgreSQL using the CSV file and checking if there is any duplicates value in DB it should return a duplicate error. I am using below mention query.
if Card_Bank.objects.filter( Q(ACCOUNT_NUMBER=card_number) ).exists(): flag=2 else: flag=1
it is taking too much time i am using 600k cards in CSV.
Чтобы сделать работу с сайтом удобнее, мы используем cookie и аналитический сервис «Яндекс.Метрика». Продолжая пользоваться сайтом, вы соглашаетесь с их использованием.