title: DQL to find all the folders present in a cabinet
body: <p>I would like want to fetch all the folders present in all the cabinets using a DQL statement like this</p>
  
  <p><code>SELECT object_name, r_object_id, r_folder_path FROM dm_folder WHERE FOLDER(’/Cabinetname’,descend) ORDER BY r_folder_path</code></p>
  
  <p>In DQL tester it's giving me response, but when I'm using it in my code I obtain server time out because it's a quite expensive query. Is there any way to resolve the situation and improve the query?</p>