EC-CUBE / EC-CUBE/ec-cube

商品規格増加時の商品一覧の負荷軽減

Open
#4,197 0 comments 0 reactions 0 assignees View on GitHub
improvement
Dominant language
PHP
Stars
788
Forks
719
Avg merge
4d 4h
Merged PRs (30d)
39

Description

## 概要(Overview)
規格の件数が多い商品がたくさんある状態で、
商品一覧を表示するとシステムエラーが発生します。

### エラーメッセージ
```
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 48238592 bytes) in /var/ec-cube/vendor/symfony/cache/Traits/FilesystemTrait.php on line 98
```

## 期待する内容(Expect) or 要望 (Requirement)
今回の場合、以下の条件下で発生しました。
・1商品あたりの規格数:平均6*8=48規格
・商品一覧の表示件数:40件

最低でも、以下のような表示件数に耐えられる状態にしたい。
・1商品あたりの規格数:平均6*10=60規格
・商品一覧の表示件数:50件 ←デフォルトでの最大表示件数

## 再現手順(Procedure)

### 環境 (environment)
+ EC-CUBE: 4.0.2
ec-cube.co環境にて発生

## 関連情報 (Ref)
全商品データをjsonですべて取得しているため、
Ajaxで非同期にとるなどの対応が必要と想定。

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.