Commit a9679be0 authored by Sven Franck's avatar Sven Franck

app: allow to skip total record query on individual query

parent 3d6486e9
...@@ -5988,10 +5988,11 @@ ...@@ -5988,10 +5988,11 @@
} }
// TODO: get ALL RECORDS matching query (and make this if disappear ...) // TODO: get ALL RECORDS matching query (and make this if disappear ...)
if (!app.storage_dict.property_dict.skip_total_records && if ((!app.storage_dict.property_dict.skip_total_records &&
(pass.grant || (pass.url_dict.mode === "new" || pass.purge) && pass.config_dict.skip_total_records !== true) &&
(pass.state && pass.state.query._id === undefined) && (pass.grant || (pass.url_dict.mode === "new" || pass.purge) &&
pass.config_dict.initial_query) (pass.state && pass.state.query._id === undefined) &&
pass.config_dict.initial_query)
) { ) {
// reset limit from sampling [0,1] and store query // reset limit from sampling [0,1] and store query
pass.state.query.limit = []; pass.state.query.limit = [];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment