I have two indexed fields in a table - type and userid (individual indexes, not a composite).
types field values are very lim
Most query optimizers use the order in which conditions appear as a hint. If everything else is equal, they will follow that order.
However, many things can override that:
varchar(max) vs int)So (and this is true for all SQL optimization questions) unless you observe a performance issue, it's better to optimize for clarity, not for (imagined) performance.