I have 2 tables that I want to join using a common column and create a find and reserve tile from those 2 tables (a View and Table in a DB2 schema). I created a relationship between the 2 tables in the Data Model section. Then created a Find and Reserve model by selecting required columns from these 2 tables. I am unable to get the matching records from both these tables when I execute the tile. However, when I run the SQL query I am getting the expected results.
Release : 4.9 and above
Component : CA Test Data Manager - TDM Web Portal
The behavior for the Find & Reserve tile is dependent on how the Data Model is configured. In TDM Portal 4.9.1 there are three options for configuring the Data Prefetch.
To troubleshoot the behavior, we should check the gtrep repository to see what is seen in the tables.
The Tables we check are:
Further investigation of the gtrep revealed that the cached tables, inside the gtrep, are not been synchronized with the source "View" and source "Table". This is why the Find & Reserve is not returning the expected results. By default, Find & Reserve does not use Inner Join; we use Outer Join. The cache tables, in gtrep, are used to track the data reservations.
To correct this, we need to go to TDM Portal -> Data Model in F&R, and click on Actions – Fetch data. This will query the source tables (Table & View) and update the cached tables in gtrep. Another option is to change the F&R Data Model’s configuration to use a periodic update, say once a day, or once a week. The frequency depends on the customer’s need.
Another option is to turn off the caching, which will cause F&R to always query the Source tables each time the job is run. If using the source table, we will create a table in the schema of your choice to store the reservation IDs. The account used by F&R will need the privileges to create a table in the schema selected. This is done in the F&R model by setting the Data Prefetch to OFF.
The Data Prefetch actions are logged in the C:\ProgramData\CA\CA Test Data Manager Portal\logs\TDMFindReserve.log
For more information see “Create and Edit a Find & Reserve Model” - https://techdocs.broadcom.com/us/en/ca-enterprise-software/devops/test-data-management/4-9/provisioning-test-data/configure-test-data-reservation-service/configure-dynamic-test-data-reservation-service/create-and-edit-a-find-amp-reserve-model.html
For more detail regarding the Data Prefetch Options see “Data Prefetch” - https://techdocs.broadcom.com/us/en/ca-enterprise-software/devops/test-data-management/4-9/provisioning-test-data/configure-test-data-reservation-service/configure-dynamic-test-data-reservation-service/data-prefetch.html