It's all about the answers!

Ask a question

DNG and "/rm/publish/resources?resourceURI=" request performance ...


Jean-François CHAPELLE (111) | asked Oct 18 '19, 9:45 a.m.

In DNG, with RPE, we must generate a traceability matrix.


For each requirement found in the DNG module, we should have :

- the ID and Title of the source requirement
- the ID, Title and Module Name of the linked target requirements

In RPE, we use this request on the source module :


With this request, we obtain all needed informations, except the target requirement module name :

<ds:Link type="Link">
    <rrm:title>Satisfies</rrm:title>
    <ds:isParentLink>false</ds:isParentLink>
    <ds:isChildLink>false</ds:isChildLink>
    <rrm:relation>https://dng-server/rm/resources/MB_5491eade3cec40e9a0f4a629b9857ad0</rrm:relation>
    <rrm:identifier>21710</rrm:identifier>
    <ds:content>
        <rrm:title>Abusus enim multitudine hominum, quam tranquillis in rebus diutius rexit, ex agrestibus habitaculis urbes construxit multis opibus firmas et viribus, quarum ad praesens pleraeque licet Graecis nominibus appellentur, quae isdem ad arbitrium inposita sunt co</rrm:title>
        <rrm:identifier>21710</rrm:identifier>
        <rrm:description/>
        <rrm:format>Text</rrm:format>
        <ds:artifactFormat>Requirement</ds:artifactFormat>
    </ds:content>
</ds:Link>

To obtain the target module name, we use another request based on <rrm:relation> item :

https://dng-server/rm/publish/resources?resourceURI=MB_5491eade3cec40e9a0f4a629b9857ad0

With this request, we can obtain the module name, and we can build our matrix but ...

But the performance is very "poor" ... With hundred target links, the generation time is very long. We have already optimize the RPE canvas with some Javascript to cache the information and reduce the requests number.

Do you know it is it possible to obtain all informations requested by the matrix, with a fastest way ?

Thank you

Regards.

JFC

One answer



permanent link
Subramanya Prasad Pilar (3.9k14) | answered Oct 20 '19, 1:03 p.m.

Using views data source will significantly reduce the time taken for document generation as you will get all data in a single data request (GET request). However, target requirement module name cannot be added in view. I am afraid there is no fast way to obtain all information.


Comments
Jean-François CHAPELLE commented Oct 20 '19, 11:40 p.m.

We already use "view" for other reports, and it works very fast ...


In this case, the "module name" in the last report is the main "problem".

Thank-you for your observation.

Regards.

Your answer


Register or to post your answer.