ecamp / ecamp/ecamp3

slow query: PreferredContentType

Open
#4,928 2 comments 0 reactions 0 assignees View on GitHub
agents:ignore
Dominant language
PHP
Stars
156
Forks
72
Avg merge
12h 43m
Merged PRs (30d)
203

Description

```sql

SELECT c0_.id AS id_0,
c0_.createTime AS createtime_1,
c0_.updateTime AS updatetime_2,
c0_.name AS name_3,
c0_.active AS active_4,
c0_.entityClass AS entityclass_5,
c0_.jsonConfig AS jsonconfig_6
FROM content_type c0_
INNER JOIN category_contenttype c2_ ON c0_.id = c2_.contenttype_id
INNER JOIN category c1_ ON c1_.id = c2_.category_id
WHERE c0_.id IN (SELECT c3_.id
FROM content_type c3_
INNER JOIN category_contenttype c5_ ON c3_.id = c5_.contenttype_id
INNER JOIN category c4_ ON c4_.id = c5_.category_id
WHERE c4_.id = $1)
ORDER BY c0_.createTime DESC, c0_.name ASC;
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.