Newer Version Available
Limit the use of Unique()
Sometimes you need to use unique() in a query,
but be aware that it can affect performance if there is a large number of unique
values.
For example, suppose you want to count the number of different industries that you have
opportunities with.
If your data contains a few thousand industries, this query will not negatively affect performance.
However, suppose you want to count the number of unique customers
(accounts):
If your company has millions of customers, be aware that this query will have some affect
on performance.