I have some 1.5 lakh records in db . I am looping through each record and again doing find operation to find all the duplicate records . I am doing this operation in the batch processor . This operation is running very slowly . Why ? .How can I make it to run fast ? .
- Code: Select all
var XXXFs = datasources.db.YYYYY.XXXX.getFoundSet();
XXXFs.loadAllRecords(); // loading the foundset.
for(recIndex = 1 ; recIndex <= XXXFs.getSize() ; recIndex++){ /
XXXRec = XXXFs.getRecord(recIndex);
}
This is in Servoy 7.4.2 and DB is postgres .