My current design includes two types of secondary indexes, one being a unique secondary index (data is unique, alternative primary key), and the other being a secondary non-unique index, used for range queries and equality queries in general.
My question is, due to the network round trips, should all my non-unique secondary indexes become UDF’s rather? Where should I draw the line on what should become a secondary index and what should become a UDF?