Uploaded image for project: 'TrueNAS'
  1. TrueNAS
  2. NAS-109280

Retrieve only desired properties when loading storage page in UI

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Done (View Workflow)
    • Priority: Low
    • Resolution: Complete
    • Affects Version/s: Master - TrueNAS SCALE
    • Fix Version/s: SCALE-21.04-ALPHA.1
    • Component/s: WebUI
    • Labels:
      None

      Description

      Right now storage section takes about 10 seconds to load for me and mostly it's middleware taking around 8 seconds to complete "pool.dataset.query" request.
      However with this change ( https://github.com/freenas/freenas/pull/6376/files  ), we should be able to now only retrieve properties in the UI which are going to be used and this gives much better speed with middleware call completing in 2 seconds based on properties required in the UI.

      I used parametes
      midclt call pool.dataset.query '[]' '{"extra": {"properties": ["type", "used", "available", "compression", "readonly", "dedup", "org.freenas:description", "compressratio"]}}'

      If there are any concerns, please let me know. Thanks

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                dbutenko Denys Butenko
                Reporter:
                waqar Waqar Ahmed
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: