Commit 5d184f0b authored by Anuj Gupta's avatar Anuj Gupta
Browse files

Merge branch 'ibmopenselectlimit' into 'master'

Limit on open select for schema list added

See merge request !110
parents dc3906a0 8a64daca
Pipeline #42220 failed with stages
in 37 minutes and 48 seconds
......@@ -272,6 +272,9 @@ public class IbmSchemaInfoStore extends IbmDocumentStore implements ISchemaInfoS
}
@Override
/**
* Modefied the method on May 24th 2021, for having a configurable Max limit on a open select (select with no query params)
*/
public List<SchemaInfo> getSchemaInfoList(QueryParams queryParams, String tenantId) throws ApplicationException {
try {
tenant.getName();
......@@ -284,7 +287,7 @@ public class IbmSchemaInfoStore extends IbmDocumentStore implements ISchemaInfoS
numRecords = Long.valueOf(queryParams.getLimit());
}
String selectorWithoutFilter = "{ \"selector\": {} }";
String selectorWithoutFilter = "{ \"selector\": {} , \"limit\": "+numRecords+" }";
String finalQuery = null;
Selector selector = getSelector(queryParams);
......@@ -414,4 +417,4 @@ public class IbmSchemaInfoStore extends IbmDocumentStore implements ISchemaInfoS
}
\ No newline at end of file
}
......@@ -23,4 +23,4 @@ spring.main.allow-bean-definition-overriding=true
# Use this property to name your shared tenant name
shared.tenant.name=common
\ No newline at end of file
shared.tenant.name=common
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