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

為什么 Magento 這么慢?

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

問題描述

Magento 通常這么慢嗎?

Is Magento usually so terribly slow?

這是我第一次使用它,管理面板需要很長(zhǎng)時(shí)間才能加載和保存更改.它是帶有測(cè)試數(shù)據(jù)的默認(rèn)安裝.

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.

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

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 的性能優(yōu)化,但這里有一些系統(tǒng)如此緩慢的原因

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 之上實(shí)現(xiàn)的 EAV 數(shù)據(jù)庫(kù)系統(tǒng).這意味著查詢單個(gè)事物"通常意味著查詢多行

  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

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

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 使用其配置系統(tǒng)來允許您覆蓋類.這是一個(gè)強(qiáng)大的功能,但它意味著無(wú)論何時(shí)實(shí)例化模型、助手或控制器,都需要運(yùn)行額外的 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 的模板系統(tǒng)除了布局系統(tǒng),還涉及到大量的遞歸渲染.這加起來.

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

總的來說,Magento 工程師的首要任務(wù)是構(gòu)建盡可能靈活、可定制的系統(tǒng),然后再擔(dān)心性能問題.

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

為確保更好的性能,您可以做的第一件事是打開緩存(系統(tǒng) -> 緩存管理).這將緩解 Magento 構(gòu)建其各種 XML 樹時(shí)發(fā)生的一些 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.

您要做的第二件事是確保您的主機(jī)和運(yùn)營(yíng)團(tuán)隊(duì)具有 Magento 性能調(diào)優(yōu)經(jīng)驗(yàn).如果您依靠每月 7 美元的計(jì)劃來幫助您度過難關(guān),那么祝您好運(yùn).

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.

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

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

相關(guān)文檔推薦

Magento products by categories(按類別劃分的 Magento 產(chǎn)品)
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 中是否有客戶帳戶注冊(cè)事件?)
Magento addFieldToFilter: Two fields, match as OR, not AND(Magento addFieldToFilter:兩個(gè)字段,匹配為 OR,而不是 AND)
quot;Error 404 Not Foundquot; in Magento Admin Login Page(“未找到錯(cuò)誤 404在 Magento 管理員登錄頁(yè)面)
Get Order Increment Id in Magento(在 Magento 中獲取訂單增量 ID)
主站蜘蛛池模板: 全免费a级毛片免费看视频免 | 日本久久网 | 蜜桃在线视频 | 岛国一区 | 三区在线观看 | 日韩精品一区二区三区中文字幕 | 久久久视频在线 | 亚洲精品一区二区在线观看 | 国产美女一区二区 | 亚洲人成在线播放 | 91视频大全 | 国产精品综合色区在线观看 | 精品国产一区二区三区观看不卡 | 蜜桃视频麻豆 | 先锋资源网 | 亚洲精品一二区 | 久久久久国产 | 午夜男人免费视频 | 亚洲性免费 | 美女在线视频一区二区三区 | 国产成人在线视频播放 | 精品久久一区二区三区 | 久久看精品 | 免费日韩av | 欧美激情精品久久久久 | 精品国产欧美一区二区三区成人 | 人人插人人| 亚洲欧美激情精品一区二区 | 日韩精品一区二 | 亚欧洲精品在线视频免费观看 | 精品久久99| av在线免费观看网址 | 亚洲国产一区视频 | av网站在线播放 | 国产精品视频在线观看 | 精品视频免费 | 天天干狠狠操 | 99精品欧美一区二区三区 | 国产网站在线播放 | 日韩欧美国产一区二区 | 美日韩精品 |