Hi, I'm facing a performance problem on a queryEntity.The query is done on a DSE mapped to a view in an external SQL Server database.When connecting to the DB through a client, a SELECT query with a couple of WHERE conditions takes less than 5 seconds, but when done through the queryEntity, it takes more than 10 seconds and causes a timeout in Hibernate. The environment is in cloud, so the timeout can't be overridden.I'm looking for ways to debug this discrepancy in timings.Here's the code (in reality there are 5 filters). I tried setting fetchTotalCount to false to improve performance, the result does not change.
a!queryEntity( entity: cons!EXTERNAL_VIEW, fetchTotalCount: true, query: a!query( pagingInfo: topaginginfo(1, - 1), logicalExpression: a!queryLogicalExpression( operator: "AND", ignoreFiltersWithEmptyValues: true(), filters: { a!queryFilter( field: "field1", operator: "=", value: ri!value1 ), a!queryFilter( field: "field2", operator: "=", value: ri!value2 ) } ) ) )
Thank you.
Discussion posts and replies are publicly visible