|
|
|
Re: validating duplicate records without using post [message #140872 is a reply to message #140867] |
Thu, 06 October 2005 00:12  |
 |
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
Valid question. Imagine that you have 100 fields per record, half of them have associated fields populated in the Post-Query, and you have one million records in your database. Looping through the block is going to take a very long time.
Create an implicit cursor that brings back just the one field about which you are interested, test if the record group exists, if it does delete it, create your record group, write a loop statement that uses the above cursor, and which add the entries to your record group in this loop. You still have a million records to process but they are much 'narrower' and have none of the processing associated with the Post-Query.
You can write the code as a forms procedure or function and then call it from whichever triggers need it.
David
|
|
|