1
ここに私のテーブルと私の現在の方法です。あまりにも多くのクエリ、これを行うための最も効率的な方法は?コンテンツのリストをクエリする効率的な方法、各コンテンツはタグとカテゴリのリストを取得する必要があります
Table: contents
content_id
Table: taxonomy_terms
tt_id
type (tag or category)
name
Table: relationships
content_id
tt_id
擬似コード:
mysql: query limit 20 contents from **contents**
php: for each content
mysql: query tags and categories from **relationships** with content_id
Number of queries: 1 + 20 = 21