So I know that the path of documents is not stored in SQL, only the parent folder but wondering if anyone with more SQL knowledge than I can assist.
We have a conversion that we need to modify and update. Using Workflow, this is almost impossible do to how slow it is. The search repository activity simply never finishes or crashes. The search in the client takes 4 minutes to complete, not sure why Workflow never finishes (though the workflow search always takes 10 times as long as the client).
What i'd like to do in SQL is write a query to get the field values and docids I want instead. The documents I want have a specific field and are in a certain folder.
Essentially it would be something like the following:
SELECT tocid,str_val
WHERE prop_id = 155 AND path like '%ROOT FOLDER\TEST FOLDER%'
The documents could be in any number of subfolders under TEST FOLDER
However, you only have the parent ID (will need a join on toc table) so you somehow have to recursively go through them to build the path. Or somehow go recursively up to the TEST FOLDER document ID. If we don't have the path we have millions of extra documents.
Anyone know how in SQL you could query something like this?
Thanks much,
Chris