a!queryEntity() timeout

Hello!

We encountered a strange issue, one of our queries runs ok from oracle developer but sometimes ago started to fail in Appian. Appian reported it as rule error but in the log there is a timeout. We have it as 30 seconds and from oracle developer the query runs in 1-2 seconds.

What can cause such difference between using query from database tool and from appian?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    There are various reasons this can occur - is there latency between Appian and the Oracle DB? are the filters applied exactly the same (maybe there are indexing issues or maybe the query isn't *exactly* the same)?

    Can you share the queryEntity expression as well as the query in Oracle?

    Can you try running a simple select in Oracle and Appian and compare execution time? This might isolate a latency/network issue.

    Also, I would start by looking into the data store logs - docs.appian.com/.../Logging.html. If you are on Appian Cloud, the perf_monitor_rdbms.csv log that is enabled by default is very helpful in analyzing the query.
  • Basically the query is select * from db_view where ref_id = some_value with the same value. It returns 20 rows in db tool and fails in Appian.

    Thanks for the perf_monitor_rdbms and database performance log reference. It looks like something was recently changed on the database side that made the view very slow.
Reply Children
No Data