Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

searchIndexを構築する方の仕組みで、大量の記事が登録されるなどがあった際に、大きなトランザクションやテーブルロックで全体が止まるような実装になっていないか、について調査依頼 #1738

Open
fuchigam1 opened this issue Jul 26, 2021 · 1 comment
Labels
Adjusting 調整中 Ver4 バージョン4

Comments

@fuchigam1
Copy link
Collaborator

概要

以下の内容でご相談を受けたため発行です。

baserのISSUEなどで、searchIndexを構築する方の仕組みで、大量の記事が登録されるなどがあった際に、大きなトランザクションやテーブルロックで全体が止まるような実装になっていないか、について調査して欲しいです。
  • 発生した事柄
    • DBへのアクセス負荷が高まる場面が発生
    • 以下のクエリがあやしいポイントとの情報を共有受けた。(※記事を検索インデックスに登録する際に発行されるクエリー)
SELECT `SearchIndex` . `type` FROM `prod_basercms` . `mysite_search_indices` AS `SearchIndex` WHERE `SearchIndex` . `status` = ? GROUP BY `SearchIndex` . `type`

baserCMS version : 4.3.5

備考

  • 環境: AWS、RDS
@kaburk
Copy link
Collaborator

kaburk commented Jul 28, 2021

ソースコード内で明示的にトランザクション発行している箇所としては
・固定ページ、ブログ(記事ではない)、メールフォームの各コンテンツのcopy処理
・検索index全体の再作成処理時
・コンテンツ管理の指定したコンテンツ配下のコンテンツのURLを一括更新する処理
・管理画面ユーザーのパスワード再発行処理
・管理画面 バックアップデータの復元処理
という感じでした。

通常の運用では大量の記事が登録されるなどがあった際での発生はなさそうです。

@kaburk kaburk added the Adjusting 調整中 label Jul 28, 2021
@ryuring ryuring added the Ver4 バージョン4 label Apr 14, 2023
ryuring pushed a commit that referenced this issue Apr 17, 2023
Co-authored-by: Đỗ Văn Hùng <HungDV2022>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Adjusting 調整中 Ver4 バージョン4
Projects
None yet
Development

No branches or pull requests

3 participants