mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
Query: cache QueryResult so each call gets the same one.
This commit is contained in:
parent
f95a09a015
commit
638fb123ec
@ -357,7 +357,10 @@
|
||||
|
||||
var queryResult = null;
|
||||
if (this.latest_query_data && ttl != 0) {
|
||||
queryResult = new QueryResult({'query_result': this.latest_query_data});
|
||||
if (!this.queryResult) {
|
||||
this.queryResult = new QueryResult({'query_result': this.latest_query_data});
|
||||
}
|
||||
queryResult = this.queryResult;
|
||||
} else if (this.latest_query_data_id && ttl != 0) {
|
||||
queryResult = QueryResult.getById(this.latest_query_data_id);
|
||||
} else if (this.data_source_id) {
|
||||
|
Loading…
Reference in New Issue
Block a user