We have some sites with hundreds of thousands of users. We're finding that the user picker is extremly slow. In particular, one that we run into often is in email marketing when selecting users. For a copule sites it takes longer than 30 seconds to be able to interact with the list of users. This seems like it should be easy to address.
I see from SQL Profiler that the query is: "exec sp_executesql N'SELECT * FROM [AccessUser] WHERE ( [AccessUser].[AccessUserType] IN (@p0,@p1,@p2,@p3,@p4) ) order by accessuserid',N'@p0 int,@p1 int,@p2 int,@p3 int,@p4 int',@p0=1,@p1=3,@p2=4,@p3=5,@p4=15"
I do notice that if you page through the pages that it's much faster, so the entire user list is loaded into memory and paging occurs with that. However, for really large sets of users, that's very slow.
Would it be possible in a future version to do the paging in the SQL Server calls (e.g. SELECT TOP X) rather than pulling everything across and paging in code?
Thanks,
Scott