You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by "Ryan Durfey (JIRA)" <ji...@apache.org> on 2017/06/13 20:06:01 UTC

[jira] [Updated] (TC-372) Assigning ds's to user thru API takes too long

     [ https://issues.apache.org/jira/browse/TC-372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ryan Durfey updated TC-372:
---------------------------
         Labels: delivery_service tenant user  (was: )
    Component/s: Traffic Ops

> Assigning ds's to user thru API takes too long
> ----------------------------------------------
>
>                 Key: TC-372
>                 URL: https://issues.apache.org/jira/browse/TC-372
>             Project: Traffic Control
>          Issue Type: Improvement
>          Components: Traffic Ops, Traffic Ops API
>            Reporter: Jeremy Mitchell
>            Assignee: Jeremy Mitchell
>            Priority: Minor
>              Labels: delivery_service, tenant, user
>
> POST /api/$version/deliveryservice_user takes the following payload:
> { userId: 42, deliveryServices: [1,2,3,4,5,6,7,8,9...] }
> and it loops thru each ds to perform a query to see if it exists and then does a query to do an insert into the deliveryservice_tmuser table. so if you're assigning 500 ds's to a user...you end up with 1000 queries...
> need to optimize this endpoint.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)