Kjell Rilbe wrote 24.11.2021 17:03:
> Will index lookups perform best with (TenantId, Id) or with (Id, TenantId).
Former index is better because of index key compression.
> I would guess the latter, since Id has a lot better selectivity.
Comparison is not sequential, index keys are compared as whole, so there is
no difference for two bigints.
--
WBR, SD.