久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

為什么 Magento 這么慢?

Why is Magento so slow?(為什么 Magento 這么慢?)
本文介紹了為什么 Magento 這么慢?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

Magento 通常這么慢嗎?

Is Magento usually so terribly slow?

這是我第一次使用它,管理面板需要很長時間才能加載和保存更改.它是帶有測試數據的默認安裝.

This is my first experience with it and the admin panel simply takes ages to load and save changes. It is a default installation with the test data.

托管它的服務器以超快的速度為其他非 Magento 站點提供服務.Magento 使用的 PHP 代碼是什么導致它變得如此緩慢,以及可以做些什么來修復它?

The server where it is hosted serves other non-Magento sites super fast. What is it about the PHP code that Magento uses that makes it so slow, and what can be done to fix it?

推薦答案

我只是偶爾參與了 Magento 的性能優化,但這里有一些系統如此緩慢的原因

I've only been tangentially involved in optimizing Magento for performance, but here's a few reasons why the system is so slow

  1. 部分 Magento 使用在 MySQL 之上實現的 EAV 數據庫系統.這意味著查詢單個事物"通常意味著查詢多行

  1. Parts of Magento use an EAV database system implemented on top of MySQL. This means querying for a single "thing" often means querying multiple rows

幕后有很多事情(應用程序配置、系統配置、布局配置等)涉及在內存中構建巨大的 XML 樹,然后查詢"這些相同的樹以獲取信息.這需要內存(存儲樹)和 CPU(解析樹).其中一些(尤其是布局樹)是巨大的.此外,除非打開緩存,否則這些樹是從磁盤上的文件每個請求構建的.

There's a lot of things behind the scenes (application configuration, system config, layout config, etc.) that involve building up giant XML trees in memory and then "querying" those same trees for information. This takes both memory (storing the trees) and CPU (parsing the trees). Some of these (especially the layout tree) are huge. Also, unless caching is on, these tree are built up from files on disk and on each request.

Magento 使用其配置系統來允許您覆蓋類.這是一個強大的功能,但它意味著無論何時實例化模型、助手或控制器,都需要運行額外的 PHP 指令來確定是否需要原始類文件或覆蓋類文件.這加起來.

Magento uses its configuration system to allow you to override classes. This is a powerful feature, but it means anytime a model, helper, or controller is instantiated, extra PHP instructions need to run to determine if an original class file or an override class files is needed. This adds up.

Magento 的模板系統除了布局系統,還涉及到大量的遞歸渲染.這加起來.

Besides the layout system, Magento's template system involves a lot of recursive rendering. This adds up.

總的來說,Magento 工程師的首要任務是構建盡可能靈活、可定制的系統,然后再擔心性能問題.

In general, the Magento Engineers were tasked, first and foremost, with building the most flexible, customizable system possible, and worry about performance later.

為確保更好的性能,您可以做的第一件事是打開緩存(系統 -> 緩存管理).這將緩解 Magento 構建其各種 XML 樹時發生的一些 CPU/磁盤阻塞.

The first thing you can do to ensure better performance is turn caching on (System -> Cache Management). This will relieve some of the CPU/disk blocking that goes on while Magento is building up its various XML trees.

您要做的第二件事是確保您的主機和運營團隊具有 Magento 性能調優經驗.如果您依靠每月 7 美元的計劃來幫助您度過難關,那么祝您好運.

The second thing you'll want to do is ensure your host and operations team has experience performance tuning Magento. If you're relying on the $7/month plan to see you through, well, good luck with that.

這篇關于為什么 Magento 這么慢?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Magento products by categories(按類別劃分的 Magento 產品)
Resource interpreted as image but transferred with MIME type text/html - Magento(資源被解釋為圖像但使用 MIME 類型 text/html 傳輸 - Magento)
Is there an event for customer account registration in Magento?(Magento 中是否有客戶帳戶注冊事件?)
Magento addFieldToFilter: Two fields, match as OR, not AND(Magento addFieldToFilter:兩個字段,匹配為 OR,而不是 AND)
quot;Error 404 Not Foundquot; in Magento Admin Login Page(“未找到錯誤 404在 Magento 管理員登錄頁面)
Get Order Increment Id in Magento(在 Magento 中獲取訂單增量 ID)
主站蜘蛛池模板: 一区二区三区免费 | 黄色在线免费观看 | 午夜精品久久久久久久久久久久久 | 日本粉嫩一区二区三区视频 | 羞羞的视频在线观看 | 成人免费网站 | www.久久久 | 国产色在线 | 亚洲在线电影 | 久久a久久 | 久久久精| 亚洲成人综合社区 | 精品久久久久久久久久久久久 | 日韩在线成人 | 日本成人福利视频 | 亚洲一区二区久久 | 国产日韩精品视频 | 欧美日韩国产一区二区三区 | 91在线看网站 | 亚洲成人免费av | 在线免费观看视频黄 | 玖玖免费 | www.久草.com| 一区二区三区国产 | 精品久久精品 | 不卡的av在线 | 久久精品女人天堂av | 成年人免费在线视频 | 国产精品视频偷伦精品视频 | 国产成人99久久亚洲综合精品 | 99国产精品视频免费观看一公开 | 美女国内精品自产拍在线播放 | 视频精品一区二区三区 | 欧美精品网站 | 欧美日韩中文字幕在线播放 | 精品欧美乱码久久久久久1区2区 | 久久久久久国产精品 | 国产999精品久久久久久 | 国产综合精品一区二区三区 | 久久久人成影片免费观看 | 精品国产黄色片 |