Most efficient way to get a total count of a large data set of an Entity ?

Certified Senior Developer

Hi All,

Is there any most efficient way to get a total count of a large data set of an Entity without pulling all the data itself from the data set . Use case is to retrieve only total no records in an enitity.

Thanks in advance.

  Discussion posts and replies are publicly visible