You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2018/05/15 20:41:32 UTC

[GitHub] rob05c commented on issue #2274: Profiles endpoint unordered

rob05c commented on issue #2274: Profiles endpoint unordered
URL: https://github.com/apache/incubator-trafficcontrol/issues/2274#issuecomment-389306244
 
 
   Ordering in the database can be expensive, and the API has never guaranteed order. See https://github.com/apache/incubator-trafficcontrol/issues/2259
   
   I'm -1 on sorting in the database; better to put the workload on clients/browsers, than the server.
   
   If you need to order, most languages can easily sort. On the command line, `curl -Lvsk --cookie $mc 'https://localhost/api/1.2/profiles' | jq '.response | sort_by(.name)'`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services