Click here to Skip to main content
15,886,919 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Question on performance... Pin
Sander Rossel16-Oct-22 4:03
professionalSander Rossel16-Oct-22 4:03 
AnswerRe: Question on performance... Pin
Marc Clifton16-Oct-22 4:05
mvaMarc Clifton16-Oct-22 4:05 
GeneralRe: Question on performance... Pin
Sander Rossel16-Oct-22 8:22
professionalSander Rossel16-Oct-22 8:22 
GeneralRe: Question on performance... Pin
Marc Clifton17-Oct-22 5:43
mvaMarc Clifton17-Oct-22 5:43 
AnswerRe: Question on performance... Pin
raddevus16-Oct-22 5:13
mvaraddevus16-Oct-22 5:13 
GeneralRe: Question on performance... Pin
Sander Rossel16-Oct-22 8:20
professionalSander Rossel16-Oct-22 8:20 
AnswerRe: Question on performance... Pin
abmv16-Oct-22 5:19
professionalabmv16-Oct-22 5:19 
AnswerRe: Question on performance... Pin
Cpichols17-Oct-22 1:32
Cpichols17-Oct-22 1:32 
This is a nightmare scenario:
Quote:
Of course it wasn't always like that, but the import table in Azure SQL has over 2 million records now and I need to validate for double records,


I've done this before and it's slow no matter what I do and our db is very optimized. What I wound up doing was pulling and storing in an array, all of the unique fields only. It's one pull (huge, but with only one or two values per record, doable). Then in the double-record validation, I just check each new record against that one array, in advance of any db insert/update work, sorting the new records into two arrays, one for insert, one for update. That way the inserts are quicker. If you are trashing the duplicates, you can skip the update part.
AnswerRe: Question on performance... Pin
charlieg17-Oct-22 2:27
charlieg17-Oct-22 2:27 
AnswerRe: Question on performance... Pin
MikeCO1017-Oct-22 3:03
MikeCO1017-Oct-22 3:03 
AnswerRe: Question on performance... Pin
Max Santos17-Oct-22 3:47
Max Santos17-Oct-22 3:47 
AnswerRe: Question on performance... Pin
GuyThiebaut17-Oct-22 5:54
professionalGuyThiebaut17-Oct-22 5:54 
AnswerRe: Question on performance... Pin
WildlingCoder17-Oct-22 6:38
professionalWildlingCoder17-Oct-22 6:38 
AnswerRe: Question on performance... Pin
JasonSQ17-Oct-22 8:44
JasonSQ17-Oct-22 8:44 
AnswerRe: Question on performance... Pin
englebart17-Oct-22 17:02
professionalenglebart17-Oct-22 17:02 
Generalworldle 267 Pin
jmaida15-Oct-22 8:59
jmaida15-Oct-22 8:59 
GeneralWordle 484 Pin
Vivi Chellappa15-Oct-22 8:41
professionalVivi Chellappa15-Oct-22 8:41 
GeneralRe: Wordle 484 Pin
Peter_in_278015-Oct-22 11:27
professionalPeter_in_278015-Oct-22 11:27 
GeneralRe: Wordle 484 3/6 Pin
jmaida16-Oct-22 12:33
jmaida16-Oct-22 12:33 
GeneralRe: Wordle 484 Pin
StarNamer@work15-Oct-22 13:21
professionalStarNamer@work15-Oct-22 13:21 
GeneralRe: Wordle 484 Pin
Amarnath S15-Oct-22 14:19
professionalAmarnath S15-Oct-22 14:19 
GeneralRe: Wordle 484 Pin
megaadam15-Oct-22 15:51
professionalmegaadam15-Oct-22 15:51 
GeneralRe: Wordle 484 Pin
OriginalGriff15-Oct-22 18:44
mveOriginalGriff15-Oct-22 18:44 
GeneralRe: Wordle 484 Pin
Sandeep Mewara15-Oct-22 19:16
mveSandeep Mewara15-Oct-22 19:16 
GeneralRe: Wordle 484 Pin
Sander Rossel15-Oct-22 20:28
professionalSander Rossel15-Oct-22 20:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.