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
  • Hi there,

    queryEntity indeed does two calls to DB. First to get the total number of lines returned and second to get the actual data. But if you use "-1" as batchsize Appian skips the first call and only a single call to DB is needed. We added this to our internal best practices for the cases where the number of returned lines is fixed or very small. Depending on the overhead and network latency of the DB connection this speeds up DB calls quite a bit.
Reply
  • Hi there,

    queryEntity indeed does two calls to DB. First to get the total number of lines returned and second to get the actual data. But if you use "-1" as batchsize Appian skips the first call and only a single call to DB is needed. We added this to our internal best practices for the cases where the number of returned lines is fixed or very small. Depending on the overhead and network latency of the DB connection this speeds up DB calls quite a bit.
Children
No Data