I' dooing pretty simple query
SELECT cmis:objectId, cmis:name, cmis:parentId
FROM cmis:folder
ORDER BY cmis:name
Running this query with apache cmis workbench take ~ 15 sec Running the same query with opencmis, is pretty quick, but going throught the result is terribly slow ~ 3 min.
session.query( queryStmt, false).iterator().toList()
By spliting the calls like this
def rs = session.query( queryStmt, false)
def iterator = rs.iterator()
def folders = iterator.toList()
I was able to determine that the toList()
is where it's slow.
But i don't get why.
I also tried to define a operationContext and use it with the query. Same results. Here my operationContext
def filter = "cmis:objectId,cmis:name,cmis:parentId"
def context = session.createOperationContext()
context.setCacheEnabled(false)
context.setFilterString(filter)
context.setRenditionFilterString(filter)
Any idea on how to perform this query faster ?