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

Re: The plugin slows down the site by littering the wp_options table

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
php, wordpress
領域
backend, databases

調査の方向性

まず woocommerce/utilities/class-sv-wp-background-job-handler.php の create_job と get_job のエントリポイントから始め、次にリンク先の WordPress サポートレポートを確認します。現在の wp_options への保存と LIKE ベースの検索を、提案されているジョブフィールドと比較します。バックグラウンドジョブが wp_options にジョブデータを保存するのではなく、適切なキーを持つ専用テーブルを使用すれば完了です。

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

説明

@see https://wordpress.org/support/topic/the-plugin-slows-down-the-site-by-littering-the-wp_options-table/

the create_job ( https://github.com/godaddy-wordpress/wc-plugin-framework/blob/1c2fb1a31228f754ef7427f15ac034d3d8cb6de0/woocommerce/utilities/class-sv-wp-background-job-handler.php#L391 )

and
get_job ( https://github.com/godaddy-wordpress/wc-plugin-framework/blob/1c2fb1a31228f754ef7427f15ac034d3d8cb6de0/woocommerce/utilities/class-sv-wp-background-job-handler.php#L391 0

are really bad for performance as they do not have integer primary keys and use LIKE queries in the option_value's.

It needs to be converted to a dedicated table like this (just an example):

ID (PK, integer or varchar)
identifier (key)
status (key)
created_at (datetime)
created_by (int)
started_processing_at (datetime)
updated_at (datetime)
total (int)
progress (int)
handles (text)
completed_at (datetime)
data (text)

主要言語
PHP
スター
146
フォーク
43
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

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

godaddy-wordpress/wc-plugin-framework のほかの issue

godaddy-wordpress/wc-plugin-framework の issue をすべて見る

似ている issue

PHP の issue をもっと見る

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

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