Add comment on manually computing sites list total

pull/3463/head
Adrian Gruntkowski 3 years ago
parent a2b8a544c4
commit b50c2808e7

@ -53,6 +53,9 @@ defmodule Plausible.Sites do
)
|> maybe_filter_by_domain(domain_filter)
# We compute total ourselves because paginator
# does not handle counting total when the query
# selects from a subquery.
total_count =
sites_query
|> Ecto.Query.exclude(:preload)

Loading…
Cancel
Save