Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-31509

Web UI -> Infrastructures -> Capsules page takes long time to load

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • Performance
    • False
    • Moderate
    • None
    • None
    • None
    • None

      Description of problem:

      Capsules page can take a minutes or more to load when the following conditions are met:

      • Many Capsules. 10 or more.
      • Many organizations (10 or more)  associated to the Capsules.
      • Many locations (hundreds or more) associated to the Capsules.
      • Each Capsules synced a few thousands of repositories (large content_counts field).

       

      How reproducible:

      When the above conditions are met

       

      Is this issue a regression from an earlier version:

      Could be. Since Capsule content_counts is introduced.

       

      Business Impact / Additional info:

      This is caused by the "eager_load" in the smart_proxies_controller.rb

       

        def resource_base
          super.eager_load(:locations, :organizations)
        end 

      It generates a slow queries which returned many duplicate row that included the large json binary content_counts field which is appeared to be the performance bottleneck.

       

       

       

       

       

              Unassigned Unassigned
              rhn-support-hyu Hao Chang Yu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: