Thinly slice onions. Combine onions, water, sugar, and vinegar; marinate overnight. Before serving, drain and pat dry. Toss with mayonnaise and salt. Serve on party rye.