[
https://issues.apache.org/jira/browse/LENS-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15272272#comment-15272272
]
Lavkesh Lahngir commented on LENS-1019:
---------------------------------------
1. There is no need to check for sync queries, because they are very short
lived. Or there will be a timeout of a fixe duration which will cancel the
query which are not completed.
2. We have to check if the user provided conf is the same for the previous
query.
QueryContext class has a lensconf which is updated with all the configurations.
So the user-conf is merged in the lensConf. There is no separate way to get the
user-conf. We can store the user-conf in QueryContext or if we want to
optimise, we could just store a md5-hash of the conf.
> Return same handle for repeated query from same user
> ----------------------------------------------------
>
> Key: LENS-1019
> URL: https://issues.apache.org/jira/browse/LENS-1019
> Project: Apache Lens
> Issue Type: Improvement
> Reporter: Lavkesh Lahngir
> Assignee: Lavkesh Lahngir
>
> If query is repeated from user - with same query, same name, same conf on the
> same session
> and earlier is still queued or running, then return the same handle.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)