coding style
add test for max limit
refactor code
don't list users who have left the community, and fix ordering
query by `slug` instead `name`
create index on communities.slug

The test query I tried on the production DB got about 30 times faster.