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