Hi Experts,
I have performance issue while doing duplicate check before saving the data. Below is my analysis.
The logic to check duplicate records does the following
remember_occ = $curocc(entity_name)
setocc "entity_name", 1
while ($status > 0)
getitem/id junk, local_list, "%%field1.entity_name|%%field2.entity_name|%%field3.entity_name"
if ($status > 0)
; raise duplicate error message
endif
putitem local_list, -1, "%%field1.entity_name|%%field2.entity_name|%%field3.entity_name"
setocc "entity_name", $curocc(entity_name)+1
endwhile
setocc "entity_name",remember_occ
If the logic above is commented then data changes are saved within a minute else it takes more than 10minutes for 17thousand records.
also this is a legacy logic written in earlier version(s) of uniface hence there might be issues in it. Current version of uniface that we are working is Uniface 10.
please suggest!
thanks,
imran.