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 ...@@ -272,6 +272,9 @@ public class IbmSchemaInfoStore extends IbmDocumentStore implements ISchemaInfoS
} }
@Override @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 { public List<SchemaInfo> getSchemaInfoList(QueryParams queryParams, String tenantId) throws ApplicationException {
try { try {
tenant.getName(); tenant.getName();
...@@ -284,7 +287,7 @@ public class IbmSchemaInfoStore extends IbmDocumentStore implements ISchemaInfoS ...@@ -284,7 +287,7 @@ public class IbmSchemaInfoStore extends IbmDocumentStore implements ISchemaInfoS
numRecords = Long.valueOf(queryParams.getLimit()); numRecords = Long.valueOf(queryParams.getLimit());
} }
String selectorWithoutFilter = "{ \"selector\": {} }"; String selectorWithoutFilter = "{ \"selector\": {} , \"limit\": "+numRecords+" }";
String finalQuery = null; String finalQuery = null;
Selector selector = getSelector(queryParams); Selector selector = getSelector(queryParams);
......
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