Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-4397

speed up controlled vocabulary loading

    XMLWordPrintable

    Details

    • Attachments:
      3
    • Comments:
      1
    • Documentation Status:
      Not Required

      Description

      Controlled vocabulary uses Xalan selectNodeList(). Using selectNodeIterator() instead should lead to faster loading. I measured a significant speed improvement from 50 seconds down to 20 seconds on 10k entries (test dictionary attached).

      Testing configuration:

      Attached file: [dspace]/config/controlled-vocabularies/test-dictionary.xml

       

      [dspace]/config/input-forms.xml
         <form name="traditional" fileupload="optional">
           <page number="1">
      ...
             <field>
               <dc-element>event</dc-element>
               <dc-qualifier>title</dc-qualifier>
               <repeatable>true</repeatable>
               <label>Název konference</label>
               <input-type>onebox</input-type>
               <hint>Zadejte název konference.</hint>
               <required></required>
               <vocabulary closed="true">test-dictionary</vocabulary>
             </field>
      

       

      Further possible work: Loaded dictionaries should be cached to avoid reloading them for each new submission.

        Attachments

        1. selectNodeIterator.png
          selectNodeIterator.png
          141 kB
        2. selectNodeList.png
          selectNodeList.png
          144 kB
        3. test-dictionary.xml
          691 kB

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            helix84 Ivan Masár
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support