Private
Remove indexes on fields that don't exist in the layer. Remove duplicate indexes on the same field.
layer or table from the service
string list of fields names
Remove indexes on fields that don't exist in the layer. Remove duplicate indexes on the same field.