Uploaded image for project: 'VOLTHA'
  1. VOLTHA
  2. VOL-2700

Evaluate and improve data-model queries

    XMLWordPrintable

    Details

      Description

      GetChildDevice when used to get a single ONU from an OLT, loops through the list of all ONU ids for the OLT and retrieves every one of them, comparing the serial_number to see if it's the wrong one. Linear search with a fetch of each item being searched. 

      https://github.com/opencord/voltha-go/blob/master/rw_core/core/device/manager.go#L339 

      This seems a very expensive operation.

      It also returns an entire device structure listing all the child ports and flows of the device and most likely those are not needed by the client. This seems another very expensive operation.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            teone Matteo Scandolo
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes