Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Content]: Eager Loading should mention what field types and properties benefit/support it

オープン
#516 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
45/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
停滞
領域
documentation

調査の方向性

既存の eager-loading ドキュメントから始めます。この issue ではファイル名やページ名は指定されていません。関連する内容を更新し、どのフィールド型とプロパティが eager-loading をサポートするのか、どのような場合にパフォーマンスが向上するのか、また、示されている eagerLoadElements() の例を含めるべきかを説明してください。これらの制限事項とユースケースが明確に文書化されていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

📦 CMS
Product

Other/Multiple/Not Sure

Description

We aren't currently explicitly listing the fields and/or properties of elements that can be eager-loaded.

This may have to be "generic," but should still be front-and-center, i.e. "Only properties and custom fields that reference other elements can be eager-loaded."

Additionally, not all fields and/or related elements need to be eager-loaded. We can cover situations where you are apt to see performance improvements vs situations where you won't see any benefit.

This may include a mention of the eager-loading-in-place service method:

{% do craft.app.elements.eagerLoadElements(
  className(entry),
  [entry],
  [
     ...
  ]
) %}
主要言語
JavaScript
スター
43
フォーク
160
平均マージ
3時間 57分
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

craftcms/docs のほかの issue

craftcms/docs の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。