***Note from Migration:***
Original Title was: ArcGIS Online and Portal feature writers to support adding and updating attribute indices
If you are maintaining large feature layers that will be queried with non-cached expressions then maintaining indices on query fields will prevent full table scans on query. At the REST level it means passing JSON to addToDefinintion or updateDefinition, like this setting up a unique index on a field 'id':
{
"indexes" : [
{
"name" : "idIndex",
"fields" : "Id",
"isAscending" : true,
"isUnique" : true,
"description" : "Unique index on primary key field ID"
}
]
}
If the writer could do this it would help a lot.

