[ 
https://issues.apache.org/jira/browse/LENS-1546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rajashekhar updated LENS-1546:
------------------------------
    Description: 
Prepared Queries were getting destroyed after 1 week, it was bloating the 
memory(as in the new flow, we have 100K prepared queries/day), we had to 
restart Lens every 12 hours. 
I changed the flow:
# Prepared Query should come from Memory for first 10 minutes. In the old flow 
it was in memory for 1 week.
# After that PreparedQuery will get destroyed(old flow)
# After 10 minutes, it should come from DB.


  was:
Bug – This had a special case for handling facts with one-update-period and 
multiple-update-periods. The case which handled one-update-period had a bug 
while generating the name of the hive table whole format is 
update_period-fact_name, the update_period was coming as null.

Fix – Removed the special case.


> Prepared Query should come from DB after few minutes
> ----------------------------------------------------
>
>                 Key: LENS-1546
>                 URL: https://issues.apache.org/jira/browse/LENS-1546
>             Project: Apache Lens
>          Issue Type: Bug
>          Components: cube
>            Reporter: Rajashekhar
>            Assignee: Rajashekhar
>            Priority: Major
>
> Prepared Queries were getting destroyed after 1 week, it was bloating the 
> memory(as in the new flow, we have 100K prepared queries/day), we had to 
> restart Lens every 12 hours. 
> I changed the flow:
> # Prepared Query should come from Memory for first 10 minutes. In the old 
> flow it was in memory for 1 week.
> # After that PreparedQuery will get destroyed(old flow)
> # After 10 minutes, it should come from DB.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to