Commit 8a64daca authored by Manish Singh's avatar Manish Singh Committed by Anuj Gupta
Browse files

Limit on open select for schema list added

parent 9da8560f
......@@ -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