mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
revert the last bits of the getcount experiment
This commit is contained in:
parent
608cba817c
commit
a6726730fc
@ -2621,21 +2621,10 @@ namespace Emby.Server.Implementations.Data
|
||||
query.Limit = query.Limit.Value + 4;
|
||||
}
|
||||
|
||||
var commandText = "select ";
|
||||
if (EnableGroupByPresentationUniqueKey(query))
|
||||
{
|
||||
commandText += "count (distinct PresentationUniqueKey)";
|
||||
}
|
||||
else if (query.GroupBySeriesPresentationUniqueKey)
|
||||
{
|
||||
commandText += "count (distinct SeriesPresentationUniqueKey)";
|
||||
}
|
||||
else
|
||||
{
|
||||
commandText += "count (guid)";
|
||||
}
|
||||
|
||||
commandText += GetFromText() + GetJoinUserDataText(query);
|
||||
var commandText = "select "
|
||||
+ string.Join(',', GetFinalColumnsToSelect(query, new[] { "count(distinct PresentationUniqueKey)" }))
|
||||
+ GetFromText()
|
||||
+ GetJoinUserDataText(query);
|
||||
|
||||
var whereClauses = GetWhereClauses(query, null);
|
||||
if (whereClauses.Count != 0)
|
||||
|
Loading…
Reference in New Issue
Block a user