We have a persitent custom field on the Service Contract, where we enter the number of the related Sales Quotation. This works fine.
Now on the Sales Quotation Line I would like to fetch the Service Contract ID in a read-only custom field. The select is as simple as it can get.
It technically works but it is very (!) slow, especially if there is no contract to be found.
Here the speed comparison in PL/SQL Developer: Running the select for a quotation with 67 rows takes 21 seconds (!), if this one custom field is part of the select statement. Without the cf, it takes 0.2 sec.
How can I optimize the speed?
Thank you for your input!
Catherine