[转]Magento 2 and 1 Million Products
本文转自:https://www.goivvy.com/blog/magento-2-1-million-products
Can Magento 2 handle 1 million products?
I came across that question many times. It got me interested and I started searching the web. I didn’t find an answer so I decided to set up my own experiment.
In this article I will install the latest Magento 2.2.2 (M2), load it with 1 million products and look at the performance. I will describe the procedure in details and will provide specifics so anybody could replicate and prove my findings.
Preconditions
Here is what I will be running:
Magento Open Source 2.2.2.
Debian 8 server with Linode 12G plan: 12G RAM, 6 CPU cores, 196Gb SSD.
I will be using Magento 2 performance toolkit to generate data for testing. It comes with M2 and it helps with testing the impact of various 3rd-party extensions and customizations.
Load 1M products
M2 performance toolkit has different profiles:
Small profile: 800 simple products, 30 categories, 200 customers, 80 orders.
Medium profile: 24k simple products. 300 categories, 2000 customers, 50000 orders.
Large profile: 300k simple products, 3000 categories, 5000 customers, 100k orders.
Extra large profile: 600k simple products, 6000 categories, 10k customers, 150k orders.
Profiles are defined as XML files and are stored in setup/performance-toolkit/profiles/ce/ folder inside Magento root. Here is an example of medium profile:

We would edit extra large profile XML to set the maximum number of simple products to 1 million:
-- <simple_products>600000</simple_products>
++ <simple_products>1000000</simple_products>
Then we would run an import process:
php bin /magento setup:perf:generate-fixtures \ setup /performance-toolkit/profiles/ce/extra_large .xml |
It would take a while to complete. I had to run it two times because the first time it crashed MySQL server:

The second time it run out of memory:

I then manually reindexed it:
php bin/magento indexer:reindex
Then again it failed on Catalog Rule Product reindex:

It seemed the server just could not handle the testing data that big.
I decided to cut down the number of catalog price rules from 20 to 2, categories from 6000 to 60, customers from 10000 to 100 and orders from 16000 to 1500. I made certain edits to extra_large profile and restarted setup:perf:generate-fixtures.
This time it went OK and now I have 1,400,000 products in Magento 2:

Speed Measurements
Now it is time to feel 1 million products. I have to say I put store in production mode and enabled all cache options.
We will be measuring server response time or time to first byte. Full page load time depends on network capacity and can be different from computer to computer.
Admin Panel
Backend seems fast. TTFB of Dashboard page is 1.37 sec:

Catalog > Products takes 2.12 sec:

Catalog > Categories takes a bit more, 3.43 sec:

Frontend Performance
Storefront is not so fast. Of course Full Page Cache helps but for the sake of an experiment I will turn it off:

We are using the default Magento 2 Luma theme.
Homepage responds in 846 ms:

Category page responds in 10,03 sec:

Adding a configurable product to a cart takes 1.34 sec which is alright:

Takeaway
Magento 2 can easily handle more than 1 million products. Frontend speed is bearable and backend seems fast enough.
Reindex process does take time, in my case it was around an hour for all indexers to finish.
PS: Check out the article where I loaded WooCommerce with 1 million products and compared its performance to Magento 2.
[转]Magento 2 and 1 Million Products的更多相关文章
- Searching for Approximate Nearest Neighbours
Searching for Approximate Nearest Neighbours Nearest neighbour search is a common task: given a quer ...
- 近年Recsys论文
2015年~2017年SIGIR,SIGKDD,ICML三大会议的Recsys论文: [转载请注明出处:https://www.cnblogs.com/shenxiaolin/p/8321722.ht ...
- magento添加多个产品到购物车(Add multiple products to cart )
Step 1app\design\frontend\base\default\template\catalog\product\list.phtml<?php $_productColl ...
- MAGENTO - APACHE SOLR INTEGRATION - PART II (SETUP)
MAGENTO - APACHE SOLR INTEGRATION - PART II (SETUP) Tue, 03/01/2011 - 18:30 Tweet Development E-Comm ...
- Magento开发常用方法
这里是我做Magento开发常用到的方法,现在总结出来,后续会把更多有用的方法总结出来. 1.直接操作数据库 查找数据:$read = Mage::getSingleton("core/re ...
- magento app开发遇到的问题及解决
今天一直在解决Magento的APP接口调用数据异常的问题,调用/api/rest/category/:id 这个接口的时候,返回的所有目录的数据是一样的,原始代码是这样的. 1)请求地址 /api/ ...
- Magento SSH 下载安装
http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/installing_magento_via_shell_ ...
- 如何迁移测试的MAGENTO到正式运行的MAGENTO
或者这个题目叫做如何改变MAGENTO的运行目录 第一,我们需要在PHPMYADMIN备份整个MAGENTO的数据.备份数据并且存为.SQL. 在这儿假设你的测试网站在http://dev.site. ...
- magento问题集
magento产品页面价格出现2遍 In app\design\frontend\default\default\template\catalog\product\view\type\Simple.p ...
随机推荐
- Android-Kotlin-set/get方法的使用
Student.kt package cn.kotlin.kotlin_oop04 open class Person { open var personName:String = "我是父 ...
- .net core Area独立成单独的dll文件
以前做MES项目遇到过这个情况,一个项目有7到8个大模块,生产.质量.物耗.电子看板.设备等,每个模块都有大量业务,这样使用mvc结构如果所有模块放在一个目录中,那么势必会产生很多问题,各模块代码不好 ...
- UWP Background过渡动画
首先说两件事: 1.大爆炸我还记着呢,先欠着吧... 2.博客搬家啦,新地址:https://blog.ultrabluefire.cn/ ==========下面是正文========== 前些日子 ...
- AEAI DP V3.8.0 升级说明,开源综合应用开发平台
1 升级说明AEAI DP 3.8版本是一次常规升级,安全机制是本次开发平台的升级重点,如果开发的应用对外部用户开放,一定要注意升级!升级说明及产品介质已上传至网盘中,地址:http://pan.ba ...
- 【洛谷4238】 多项式求逆(NTT,分治)
前言 多项式求逆还是爽的一批 Solution 考虑分治求解这个问题. 直接每一次NTT一下就好了. 代码实现 #include<stdio.h> #include<stdlib.h ...
- Redis---Hash(字典)
1. 概述 Redis hash 是一个string类型的field和value的映射表,hash特别适合用于存储对象. Redis 中每个 hash 可以存储 232 - 1 键值对(40多亿). ...
- 基于cytoscape.js 、 d3.js实现的关系图谱初级版本
前面的文章已经介绍了cytoscape.js . d3.js的安装及简单demo,现在展示从html页面转移到vue项目下的最初版的demo 效果图: 代码如下: <template> & ...
- 什么是NAT端口映射?
背景:我们访问百度的时候输入www.baidu.com出现的网站首页.发生了什么事情?百度它有服务器,IP地址是公网的,有自己的域名,所以你可以正常访问到百度(实际上访问的是IP地址+服务端口).如果 ...
- [Umbraco] 入门教程(转)
如在页面上显示Helloword. 设计:在umbraco里,最基础的一个概念是文档类型(document type),每个文档其实可以看成一个页面类型.比如我们要创建的两个页面,每个页面都需要显示自 ...
- 如何在Ubuntu 14.04上利用jexus搭建支持php+mysql数据库的网站服务
准备部分:sudo apt-get update sudo apt-get install unzip -y第一部分:安装jexus 在终端运行以下命令 cd /tm ...