Table Population:
Always consider the order in which the table is populated.
Set up Truncate mode if the population extracts all data for a given instance.
NOTE: The Truncate mode setting on the population level truncates the entire table (even if it was set on the 3rd population, for example).
Set up No Truncate mode if the population extracts a delta from the source.
It is recommended to set up the Insert mode on the 1st population.
Make sure indexes are defined on the source database for the where statement columns (LUDB Schema link fields).
Limit the number of link fields to the minimum required to fetch the relevant instance data.
LUDB / Reference Queries:
To validate that a record exists, select the first row with the required WHERE condition using limit 1 or rownum < 2, depending on which database is being used.
Remove fields from the LU that are not used in the project (with the customer’s approval).
If iidFinder is being utilized, many UPDATE messages might become redundant (update of fields which do not exist in the LU). Therefore, filtering should be applied (either on the extract or in the GG replicated code which writes to Kafka).
Regarding root functions not using the INPUT field as part of the query or in the function logic, consider the following points:
Do not set the Table Population on top of the LUDB to automatically run every second. This population should be executed only when the source tables are being updated, so in most cases this should be based on a DECISION function.
When using the Table Population UPDATE mode, make sure the tables’ key fields are marked. Otherwise, all records will be updated for each iteration, resulting in all records being updated with the last iteration data. Data from previous iterations will not be updated.
Example:
Table Population:
Always consider the order in which the table is populated.
Set up Truncate mode if the population extracts all data for a given instance.
NOTE: The Truncate mode setting on the population level truncates the entire table (even if it was set on the 3rd population, for example).
Set up No Truncate mode if the population extracts a delta from the source.
It is recommended to set up the Insert mode on the 1st population.
Make sure indexes are defined on the source database for the where statement columns (LUDB Schema link fields).
Limit the number of link fields to the minimum required to fetch the relevant instance data.
LUDB / Reference Queries:
To validate that a record exists, select the first row with the required WHERE condition using limit 1 or rownum < 2, depending on which database is being used.
Remove fields from the LU that are not used in the project (with the customer’s approval).
If iidFinder is being utilized, many UPDATE messages might become redundant (update of fields which do not exist in the LU). Therefore, filtering should be applied (either on the extract or in the GG replicated code which writes to Kafka).
Regarding root functions not using the INPUT field as part of the query or in the function logic, consider the following points:
Do not set the Table Population on top of the LUDB to automatically run every second. This population should be executed only when the source tables are being updated, so in most cases this should be based on a DECISION function.
When using the Table Population UPDATE mode, make sure the tables’ key fields are marked. Otherwise, all records will be updated for each iteration, resulting in all records being updated with the last iteration data. Data from previous iterations will not be updated.
Example: