Add a --no-limit option to the ssh and rest query commands
This option will return all possible results and overrides the default limit and any limit specified using "limit" query operator. This is useful for applications that need the entire result set with a single query. Getting data with a single query improves the accuracy since there is less chance of the data being modified between calls. Change-Id: Idc4dd5799195110c580c7e6d88c0a6e8c6734d6c
This commit is contained in:
committed by
Sabari Ajay Kumar
parent
36786eaf54
commit
b186cd759f
@@ -82,6 +82,11 @@ public class QueryChanges implements RestReadView<TopLevelResource>, DynamicOpti
|
||||
imp.setStart(start);
|
||||
}
|
||||
|
||||
@Option(name = "--no-limit", usage = "Return all results, overriding the default limit")
|
||||
public void setNoLimit(boolean on) {
|
||||
imp.setNoLimit(on);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDynamicBean(String plugin, DynamicOptions.DynamicBean dynamicBean) {
|
||||
imp.setDynamicBean(plugin, dynamicBean);
|
||||
|
||||
Reference in New Issue
Block a user