# Interesting Behavior when using queryExecutionClient.queryExecute

**URL:** <https://community.dynatrace.com/t/interesting-behavior-when-using-queryexecutionclient-queryexecute/43169>\
**Category:** Developer Q&A Forum\
**Tags:** dql, dynatrace-app-toolkit, custom-app\
**Created:** [December 12, 2023, 11:16pm UTC](https://community.dynatrace.com/t/interesting-behavior-when-using-queryexecutionclient-queryexecute/43169 "2023-12-12T23:16:28Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![DeeJay](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@DeeJay](https://community.dynatrace.com/u/DeeJay)\
**Post date:** [December 13, 2023, 1:58pm UTC](https://community.dynatrace.com/t/interesting-behavior-when-using-queryexecutionclient-queryexecute/43169/3 "2023-12-13T13:58:50Z")

</div>

[@gilgi](https://community.dynatrace.com/user/12008)

Thanks for your comment,&nbsp; the issue I am having is caused by an assumption on my part.&nbsp; I was testing my DQL in Notebooks and I assumed the time range was the same as the default in my appEngine app.&nbsp; By default a new Notebook Query Grail on my system is Last 7 days, and clearly in the&nbsp;queryExecutionClient.queryExecute the time range is less.

The other assumption I was making is that a dt.entity.service didn’t have a time range but when I did a  
describe dt.entity.service in my notebook,&nbsp; I found the lifetime field which is a TIMEFRAME which makes sense now that I think about it.

---

_[View the full topic](https://community.dynatrace.com/t/interesting-behavior-when-using-queryexecutionclient-queryexecute/43169)._
