Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
+1
person also asked this
people also asked this
Replies
7 replies
Subscribers
10 subscribers
Views
4723 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Timeout issue with Query Entity
sanghapriyab
over 8 years ago
Hi,
We are experiencing problems with a query entity. When we pass a query filter with multiple filters on the same varchar column, the query entity takes around 9 sec to give us the result. When the query entity rule is called from process model it fails 2 out 3 times. The query filter is written like this.
a!queryLogicalExpression( operator: "OR", filters:{ a!queryFilter(field:"text_column1",operator:"IN",value:{""}),a!queryFilter(field:"text_column1",operator:"IS NULL")})
When we remove on of the condition it only take 200 ms.
a!queryLogicalExpression( operator: "OR", filters:{ a!queryFilter(field:"text_column1",operator:"IN",value:{""})})
Is there any reason for this or can we write this query in a different format?
Also, this is not a data threshold issue as the batch size is 1.
Thanks,
Sangho
OriginalPostID-254312
Discussion posts and replies are publicly visible
Parents
0
Sally Mason
Appian Employee
over 8 years ago
In the first example, there are two query filters that must complete for the "OR" to be evaluated. In the second, there is only one query filter to evaluate. The "IN" can be expensive in terms of time. For some ideals on how to improve your queries performance, please see
forum.appian.com/.../Database_Performance_Best_Practices.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Sally Mason
Appian Employee
over 8 years ago
In the first example, there are two query filters that must complete for the "OR" to be evaluated. In the second, there is only one query filter to evaluate. The "IN" can be expensive in terms of time. For some ideals on how to improve your queries performance, please see
forum.appian.com/.../Database_Performance_Best_Practices.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data