Revert "experimentally disable some SQL to make performance impact check"
This reverts commit fadd29ecd974fb7b84aa4194ca3c87a51337776b.
This commit is contained in:
parent
5620237e78
commit
ee68d07db2
@ -37,14 +37,10 @@ QMap<int, QString> DatabaseQueries::messageTableAttributes(bool only_msg_table)
|
||||
"THEN 'true' "
|
||||
"ELSE 'false' "
|
||||
"END AS has_enclosures");
|
||||
field_names[MSG_DB_LABELS] = QSL("1 as msg_labels");
|
||||
|
||||
/*
|
||||
field_names[MSG_DB_LABELS] =
|
||||
QSL("(SELECT GROUP_CONCAT(Labels.name) FROM Labels WHERE Labels.custom_id IN (SELECT "
|
||||
"LabelsInMessages.label FROM LabelsInMessages WHERE LabelsInMessages.account_id = "
|
||||
"Messages.account_id AND LabelsInMessages.message = Messages.custom_id)) as msg_labels");
|
||||
*/
|
||||
|
||||
return field_names;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user