I want to get all the files from the cabinet ("Wombat Insurance Co"). I am currently using this DQL query:
select r_object_id, object_name from dm_document(all)
where folder('/Wombat Insurance Co', descend);
This is normal, but only returns no more than 100 results. If there are 5,000 files in the case, I want to get all 5,000 results. Is there a way to use pagination to get all the results?
I tried this query:
select r_object_id, object_name from dm_document(all)
where folder('/Wombat Insurance Co', descend)
ENABLE (RETURN_RANGE 0 100 'r_object_id DESC');
in order to get results in increments of 100 files, but this request gives me an error when trying to execute it. The error says this:
com.emc.documentum.fs.services.core.CoreServiceException: "QUERY" action failed.
java.lang.Exception: [DM_QUERY2_E_UNRECOGNIZED_HINT]error:
"RETURN_RANGE is an unknown hint or is being used incorrectly."
I think I'm using the RETURN_RANGE hint correctly, but maybe not. Any help would be appreciated!
I also tried using a hint ENABLE(FETCH_ALL_RESULTS 0), but this still returns a maximum of 100 results.
, : ?