Re: how to make duplicate finding query faster?

Поиск
Список
Период
Сортировка
От Scott Ribe
Тема Re: how to make duplicate finding query faster?
Дата
Msg-id 84F2C1B0-3510-410B-8924-0EB7377684A9@elevated-dev.com
обсуждение исходный текст
Ответ на Re: how to make duplicate finding query faster?  (Sachin Kumar <sachinkumaras@gmail.com>)
Список pgsql-admin
> On Dec 30, 2020, at 6:24 AM, Sachin Kumar <sachinkumaras@gmail.com> wrote:
>
> Yes, I am checking one by one because my goal is to fail the whole upload if there is any duplicate entry and to
informthe user that they have a duplicate entry in the file. 

That's not what I said, though. If you want to fail the whole copy, then you don't have to check one by one, just try
thecopy--assuming you have the correct constraints in place. 

Unless you want to tell the user *which* rows are duplicates, in which case you can try a variant on my prior
suggestion,copy into a temp table, use a join to find duplicates... 


В списке pgsql-admin по дате отправления:

Предыдущее
От: Sachin Kumar
Дата:
Сообщение: Re: how to make duplicate finding query faster?
Следующее
От: John Scalia
Дата:
Сообщение: Creating a materialized view causing blocks