Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-15652

Improve RubyGem metadata efficency

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: 4 - Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Metadata, RubyGems
    • Labels:
      None

      Description

      Current Situation:

      Currently the RubyGem Spec file generated by Artifactory contains duplicate strings, making the file very large compared to a similar file generated by https://rubygems.org/.

      This difference is not detectable during operations on a small to medium Artifactory Gems repository, however as the number of Gem files increase the larger the spec file becomes.

      Steps to reproduce:
      At around 180,000 artifacts, the Gem client needs far more time to process the Artifactory Gem Spec file compared to the one it pulls from rubygems.org. This can be observed by checking the sizes of the two spec files:

      *du .gem/specs/
      40488 .gem/specs/[ART_URL]%8081/artifactory/api/gems/gems-virtual
      [...]
      15712 .gem/specs/api.rubygems.org%443*

      Current workarounds are to have smaller RubyGem repositories to limit the metadata size.

      A potential solution to this problem would be to generate a gemspec metadata file that contains pointers to shared strings; this is what rubygems.org does to keep its metadata file small.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            patrickr Patrick Russell
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Sync Status

                Connection: RTFACT Sync
                RTMID-15652 -
                SYNCHRONIZED
                • Last Sync Date: