i am using below query to generate some information of around 7k lines. but the issue is that the query is taking too much time to complete just 7k line. i need to fine tune it.
use with (nolock)
mo.GroupNumber from Person p with (nolock)