Index on semarchy table is blocking Semarchy deployment
B
Bharat Joshi
started a topic
about 1 year ago
When I create an index on xDM database tables to improve performance , but facing an error and unable to deploy the application due to this new index, How to resolve this?
Best Answer
B
Bharat Joshi
said
about 1 year ago
When deploying a model, it is the user of the repository who is used to deploy a model and each time he compares what is in the base in relation to the model to be deployed.
You need to prefix your index with USR_ to ignore it when comparing, this will solve the issue
for example, a common way to do case-insensitive comparisons is to use the lower function:
SELECT * FROM test1 WHERE lower(col1) = 'value';
This query can use an index if one has been defined on the result of the lower(col1) function:
CREATE INDEX test1_lower_col1_idx ON test1 (lower(col1)); Now, in the above query you need to add USR_ as prefix in your index so that it does not throw an error
CREATE INDEX USR_test1_lower_col1_idx ON test1 (lower(col1));
1 Comment
B
Bharat Joshi
said
about 1 year ago
Answer
When deploying a model, it is the user of the repository who is used to deploy a model and each time he compares what is in the base in relation to the model to be deployed.
You need to prefix your index with USR_ to ignore it when comparing, this will solve the issue
for example, a common way to do case-insensitive comparisons is to use the lower function:
SELECT * FROM test1 WHERE lower(col1) = 'value';
This query can use an index if one has been defined on the result of the lower(col1) function:
CREATE INDEX test1_lower_col1_idx ON test1 (lower(col1)); Now, in the above query you need to add USR_ as prefix in your index so that it does not throw an error
CREATE INDEX USR_test1_lower_col1_idx ON test1 (lower(col1));
Bharat Joshi
When I create an index on xDM database tables to improve performance , but facing an error and unable to deploy the application due to this new index, How to resolve this?
for example, a common way to do case-insensitive comparisons is to use the
lower
function:This query can use an index if one has been defined on the result of the lower(col1) function:
Bharat Joshi
for example, a common way to do case-insensitive comparisons is to use the
lower
function:This query can use an index if one has been defined on the result of the lower(col1) function:
-
Extend a model with new entities or attributes
-
Data types in xDM
-
Effective date on entities
-
Search using wild cards
-
Export a model from production and import on a development environment
-
"Allow Delete" vs "Allow Removal" privileges
-
LOV label in Named Query
-
Select location on a map and save coordinates
-
Is there a way to set up a master-detail relationship on browse mode?
-
Choose Either a Stepper or A Workflow Based on The User Privileges
See all 274 topics