Questions tagged [performance]

Denotes questions related to performance on Magento

Filter by
Sorted by
Tagged with
27
votes
14answers
36k views

Magento 2 running so slow on localhost development

I recently started developing on magento2 new extensions or customizations, and my first impression was a nightmare. I have to wait about 20-30s for every change I make? really? I'm talking about ...
4
votes
2answers
2k views

How to flush/rebuild config cache on High-Performance sites?

If we flush the config cache, the cache is build up by the customer in the frontend. The problem is that a lot of customer build the same cache and it took a lot of server resources. Is there a smart ...
1
vote
1answer
448 views

Load testing the cart with a fixed cookie

I am working on improving the performance of a Magento 1.9 store. I have made a lot of improvements that have reflected well in load tests on the home page and product pages, and on the cart without a ...
8
votes
3answers
5k views

Magento 2: move the javascript to the end of the body

As Magento 2 migrated away from Prototype I was expecting that this would be fixed in M2. So, is there a way (easy or not) to move all the <script> tags to the end of the <body> tag ...
4
votes
1answer
1k views

Magento 1: caching SQL queries using Magento cache

Theorically, you can cache anything using Mage::app()->saveCache() and I recently came accross some code that could potentially cache the product load: <?php class Vendor_Module_Model_Product ...
6
votes
1answer
1k views

Magento 1: using Mage::objects() to cache models

So I found out that in theory, Mage::objects() could be used to cache objects via Varien_Object_Cache. I noticed that if I run the following: // Test #1 for ($i = 0; $i < 100000; $i++) { $...
0
votes
1answer
93 views

Magento 2: Multiple Observer Affects Speed?

In My custom module, I have created 10 Observer Events. Which affects while clicking on "Add To Cart", "Check Out". At single level user & development level, it's fine. My worry is when site ...
0
votes
1answer
405 views

Magento 1: pros and cons of disabling the indexing on mass product import

I've got a custom script that automatically import a lot of products at once. I've seen here and there that it is a huge performance improvement to disable indexing when mass importing products. My ...
0
votes
1answer
551 views

Magento 2 optimize performance by separating static element and cache

I'm drafting the system diagram of my site. I'm planning to use multiple servers 4 apache servers, 2 db servers and 2 file server for performance enhancement. As Magento has many cache files and ...
5
votes
2answers
566 views

Disable all Mage_CatalogInventory features

We don't use any feature of Mage_CatalogInventory and I disabled some of it in the system configuration, but there are still a lot MySQL Queries especially in the checkout, which took very long. My ...
1
vote
1answer
165 views

Varnish cached Page without Magento hit

We're using Varnish as Page Cache, but we need to make a Ajax-Request on every page view to load the dynamic Stuff. In our case it's: global messages mini Cart form key We reduced the amount of ajax ...
3
votes
1answer
276 views

Why is Locale Currency taking so long?

I have been profiling some pages and after clearing cache there is a really slow response from: Locale/Currency I am not too sure why it is taking so long. Here is the profiler entry: Here is the ...
4
votes
1answer
608 views

When setting a product attribute programmatically, can't retrieve it from a collection

I've got a simple varchar product attribute, let's call it "badge". If I set values for it programmatically for a set of products like this: Mage::getModel('catalog/product_action') ->...
0
votes
1answer
111 views

performance problems on an 8 Cores VPS with 6 GB RAM…Shall I buy the Litespeed webserver?

I have this VPS: RAM: 6144 MB CPU: 8 Cores SSD hard disk I have the following Magento accounts on my VPS server: 1. Magento ver. 1.9.1.0 with php 5.5 2. Magento ver. 2.1.0 with php 5.6 3. another ...
0
votes
1answer
779 views

nginx load balance - magento 2

I am trying to set nginx load balance I have planned like Load Balance Nginx + Two Magento Instance + one database, after some search around that topics I have some doubts. As per this answer, it is ...
0
votes
1answer
47 views

Magento2 Site is quick but checkout takes over 1m to submit

I've been working on a Magento2 site for a while now. and the entire site is quick, responsive, and working well in production mode. We work with Redis, and all caching on. But when I place an ...
0
votes
1answer
381 views

Magento 1: most efficient way to bulk add entities

So I'm working on a CRUD module that creates entities based on an XML feed. Right now, I'm using Magento system, so I have an array of data that I use to populate my object then call the save() ...
1
vote
1answer
376 views

Would like to reduce Database Size?

I've looked up which tables I can clear for Magento to perform better with Database requests, everyone so far is saying that the following are the best: truncate log_customer; truncate log_quote; ...
5
votes
3answers
13k views

Magento 2: How to work with minified JS and CSS files

I don't understand how minification is supposed to work for JS/CSS. My version is Magento 2.1.0 I found the setting in the configuration under Stores -> Configuration -> Advanced -> ...
1
vote
1answer
2k views

Magento 2: Interceptor Error better way to solve?

I'm using Magento 2 CE Version 2.1.0 on WAMP. When we receive below kind of error a:4:{i:0;s:414:"Recoverable Error: Argument 6 passed to Magento\Catalog\Controller\Adminhtml\Product\Save::...
1
vote
1answer
1k views

Should I disable flat catalog?

My Magento store has around 60,000 products. We use flat tables. We are in the process of separating them into different attribute sets, and are adding lots of new attributes to assist with filtering ...
2
votes
1answer
680 views

Magento 2 - 11k Products on 1 configurable product too much?

A few specs: Using magento 2.1 PHP 7.0.9 VPS has 48GB RAM 8x Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz I am setting up an online print shop, and have created a CSV of all of our 100k+ variations we ...
2
votes
1answer
1k views

Huge amount of session data in /var/sessions

The website just went down, restarted the server and within a minute it went down again. I quickly found out the problem was that the disk quota had been exceeded and allowed memory exhausted. This ...
3
votes
6answers
4k views

Magento 2: Why MAMP is very slow?

I just installed Magento 2 on MAMP (MacBook Pro) without Composer, but it is extremely slow. What should I do, step by step, please? Also, how can I set PHP memory limit?
2
votes
1answer
459 views

Prevent saving the default value for category attribute

My module adds a custom dropdown attribute to categories. This attribute has many possible values, but in most cases (~90%) users will leave the default value in the attribute's field. I want to make ...
2
votes
0answers
936 views

Magento 2.1 and PHP 7.0.8 work extremely slow

I had Magento 2.0.4 instance running on vagrant machine: CentOS 6.5 PHP 7.0.1 MySQL 5.6.31 I've upgraded to 2.1 with composer but then when I tried to run php bin/magento setup:upgrade I get ...
2
votes
0answers
576 views

Product brand (attribute, category or both)?

I am fairly new to Magento module development, and I am dealing with catalog/product pages at the moment. I have seen our clients using different approaches when dealing with storing product brands. ...
1
vote
1answer
306 views

Magento consuming a lot of memory on specific store view

I have a Magento store, with two store views, one for spanish language, and another one for english, so, I have this code: //setting spanish store view Mage::app()->getStore()->setId(8); $...
0
votes
2answers
925 views

Checkout page load slow

I have a couple of Magento sites (only selling a couple of products from the sites) that have been upgraded a few times since 2010 (now on v1.9) and they have gradually become slower. The page load ...
7
votes
1answer
2k views

How to optimize the query: the product qty bought with each of the products

I need to collect the data about the products which are bought together with the existing product on the store (in case there are any). The data should be taken from the table, storing the order items....
5
votes
3answers
699 views

Most efficient way to get data in templates

I've created a small template in which I need access to information such as the currency code, cart total etc. I'm able to get them with the methods below, but which is the most efficient? Is there ...
2
votes
1answer
57 views

Speed up magento after set up

so I've already set up a Magento site, it has been running for 1 month now. Now my question is is it still possible to get a performance boost now without losing any data. By that i mean can i upgrade ...
14
votes
2answers
2k views

How is magento 2 better than magento 1?

I am just curious to know about magento 2 performance and how it is better than magento 1.x versions. Recently I started learning magento 2 and found that it is a whole new set of theory based on pure ...
1
vote
3answers
1k views

Large product collection and optimization

I wrote this piece of code. This method takes as an argument name and price of the item. Data are taken from the file line by line. There is 20k rows so this method is called 20k times. What is your ...
0
votes
1answer
330 views

Magento 1: is there any downside removing Varien_Profiler?

I recently noticed this interesting post regarding performance: https://magento.stackexchange.com/a/124/2380 So according to the OP, it seems like removing the references to Varien_Profiler in the ...
10
votes
3answers
2k views

Magento 1: Performance optimizations to delete entities

I'm currently trying to improve a couple of modules regarding performance. Some of you may know the usage of the walk() method on collection which is very useful to avoid looping through products ...
2
votes
1answer
216 views

Site very slow, exhausted all options. Really need assistance

Ok, i have come to the end of my tether on fixing the speed of my site. I have spent hours and days researching and applying all methods to get the page load speed to improve, whilst i've noticed some ...
4
votes
1answer
612 views

SQL (sub)query performance

I have performance problem with this query: SELECT CONCAT(s.store_id, '-', p.entity_id, IFNULL(CONCAT('-', l.product_id), '')) AS store_product_parent_id, p.entity_id, s.store_id, l....
2
votes
3answers
6k views

Magento 2: how to use the collection walk iterator?

Back in Magento 1, it was possible to use the collection iterator to walk through the results and avoid looping through them. It was a huge improvement in terms of performance when dealing with ...
2
votes
2answers
1k views

Avoiding memory exhaustion when updating product stock?

I need to process a product collection and update the stock quantity and status for each product. Currently I'm doing this: foreach($products AS $product) { $quantity = $productQuantities[$...
3
votes
1answer
631 views

Customer save takes long in production, any chance to improve?

Recently faced a problem of customer saving being too slow in production environment, especially while doing it as a mass-action. Production system has ~200 simultaneous users at the same time. After ...
0
votes
2answers
64 views

How I will get lacks of dummy customers for Magento test site?

As I am working on "Improve Magento site Performance". I want to load lots of data in my test site. Is there any place where I can get such big data to import into Magento system.
0
votes
1answer
43 views

Stalling on Card Validation — “Please Wait” for over 30 seconds

This has turned into a frequent and reproducible occurrence. During checkout from the back-end, after entering all the customer information.. you select any of the payment type boxes (Check, PO or CC) ...
1
vote
1answer
2k views

my.cnf for local MySQL server - several Magento projects with big catalogs

I've read tons of times there is no magical my.cnf file for a Magento project, but... I want to believe there should be some params specifically relevant for Magento catalog pages when dealing with ...
1
vote
1answer
244 views

About magento2 performce-test-toolkit

I want to test magento2.0.4 performance in my virtual machine . I read Magento Performance Toolkit User Guide.pdf in https://github.com/magento/magento-performance-toolkit . It teach me that The most ...
1
vote
1answer
1k views

Varnish cache warming

What would be your recommendations about warming a varnish cache? The particular case is a site that has not too many visits, but from time to time we need to flush the cache (the reasons for this ...
1
vote
1answer
239 views

Magento stock sync using a lot of memory- what options do i have to reduce memory usage?

I have a file of around 100,000 sku's that need to have their quantity updated in Magento. For speed reasons, I am doing a few things: 1. I am generating an array of SKU, Product ID and SKU so that I ...
2
votes
1answer
586 views

Magento2: slow loading after change less file

I'm trying to create new theme. But every time I reload the home page it is going to high CPU loading. My Settings: New theme has just one file: /app/design/frontend/Test/default/web/css/source/...
3
votes
1answer
371 views

M1 - Efficient Bulk Update Order Attribute

The problem I have added a custom attribute to the sales_flat_order table like: /* @var $installer Mage_Sales_Model_Mysql4_Setup */ $installer = new Mage_Sales_Model_Mysql4_Setup('setup'); $...
3
votes
0answers
419 views

Magento2 performance testing error

When I run the first time: magento setup:perf:generate-fixtures /var/www/setup/performance-toolkit/profiles/ce/small.xml I got this error: Generating simple products... Error in data structure: ...

1
3 4
5
6 7
10