We are using v11.0p_2016-10-31/Enterprise Deployment (built 2016-10-31) and have a use case where we need to disable cache sync on an ADD operation in a custom DMI because the SELECT is causing a DB lock due to a large amount of logic being run in different processes that lock different tables used by both processes.
Is this the best way to get the generated key since I have the cache sync disabled? I need to use the generated key in a later step, and I don't need the full record that was inserted into the DB.
Is this the best way to get the generated key since I have the cache sync disabled? I need to use the generated key in a later step, and I don't need the full record that was inserted into the DB.
Code:
DSRequest addDuplicateItemRequest = new DSRequest("lapModelItemsDS", DataSource.OP_ADD, rpcManager); addDuplicateItemRequest.setValues(newItemRecord); addDuplicateItemRequest.setOperationProperty("canSyncCache", "false"); DSResponse response = addDuplicateItemRequest.execute(); Map m = ((SQLDataSource)response.getDataSource()).getDriver().getJdbcPKs();
Comment