Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [performance]

Use it for questions about Drupal's performance, how to measure, and improve it.

1
vote
1answer
69 views

Should one avoid lots of use statements in a custom modules .module file?

Should one avoid lots of use statements in a custom modules .module file? Or does it not matter? To quanity "lots", let's say, using 7 to 10 "use" statements. use Drupal\Core\Entity\EntityInterface;...
1
vote
1answer
21 views

Should a form only be users to collect input and not display it?

I'm using the Form API in a custom module to collect a large amount of user data, which is then collated and assessed to provide an output. Currently I'm using ajax to refresh the form and display ...
1
vote
2answers
616 views

What does the AdvAgg bundler do?

I tried to read the description but I didn't understand what this component does. The description says: If not checked, the bundler will not split up aggregates. I know that the purpose of ...
1
vote
2answers
124 views

Is there a performance hit to using persistant variables?

While working on some old custom code I noticed that variable_set() was being used in a manner that always made new key pair values and never made a call to variable_del. These values would be read ...
0
votes
1answer
80 views

Add to Cart Forms Buttons disables Boost Module Caching

I've installed boost on my drupal 7 site with commerce setup. Boost is working fine, but any pages with a form, such as an add to cart form. It will disable boost caching. I need a way to ajax load ...
0
votes
1answer
350 views

Why /Drupal\Core\Form\FormBuilder->renderPlaceholderFormAction is taking so long?

I'm profiling drupal 8 website in New Relic Report shows me that method: /Drupal\Core\Form\FormBuilder->renderPlaceholderFormAction takes ~2sec. This method is called in: \Drupal\Core\...
5
votes
2answers
2k views

Is there a way to minify HTML?

Is there a way to minify HTML in Drupal 8, something like the Minify module which is for Drupal 7?
0
votes
1answer
82 views

Will groups with more number of users cause the page to load slower drupal?

Anonymous page takes 1 to 2 secs to load After the successful login, we are showing the same page but with some menu. I have disabled that menus too. But the page load takes 10 secs to load with same ...
4
votes
1answer
3k views

How to modify .htaccess to serve brotli compressed static assets over gziped ones?

I'm trying to use brotli compressed static assets with Advanced CSS/JS Aggregation as detailed here, https://www.drupal.org/node/2773807. The assets are created as they should be, but they're never ...
0
votes
1answer
40 views

Question regarding SearchAPI and Index performance/scaling

I have a site that will need to deal with thousands of nodes. it's an internal site, not public facing, with a daily concurrent user base of no less than 80 and no more than 100 users. I am trying ...
0
votes
0answers
21 views

SQL View of Collection Field taking a long time to complete

I have a View which would count the number of items related to a Taxonomy term. The view counts Field Collections, and inside each field collection there is one or more taxonomy terms. I have a ...
3
votes
2answers
337 views

Functional tests performance

In Drupal 8, I am creating functional tests extending the BrowserTestBase class. Launching a test though (even an empty one) requires about 2-3 minutes. Is this normal, is it there a way to speed up ...
1
vote
1answer
579 views

Minimizing cache clearing during development

I'm suffering from very long (several second) load times when developing locally with Drupal 8 when developing/debugging twig templates or in general having ALL caching disabled. Rebuilding cache ...
1
vote
1answer
69 views

DrupalChat module polling method [closed]

I am using drupalchat module for my website. And I wanted to check which polling method is best - "Normal AJAX" or "Long Polling". Actually We are facing performance issue. Currently we are using "...
1
vote
1answer
343 views

Downloading, and loading Google analytics script locally and daily with Drupal Cron

I'm using Drupal Google Analytics module for some time; It works perfectly and gives me the data I need. Yet, since instilling it, I get the following notification on Google Pagespeed Insights: Do ...
0
votes
2answers
792 views

Loose compression for all images directly from Drupal

I need to do image loose-compressing usually done with GIMP/TinyPNG/GPI, but just inside Drupal, but also For all images, in a single process or several sporadic processes (say, for each content type)....
1
vote
1answer
91 views

Multiple sites and performance in Drupal 7

I help manage a cluster of sites related to course curriculum. Each site is a separate Drupal 7 install with its own theming, modules, user list, content types, entity structure, and codebase - all of ...
1
vote
1answer
282 views

Very slow cache processing: Is there any alternative?

I have some Drupal sites and the one common problem on them: very large cache with very slow processing and therefore the sites work very slow. I have enabled all caches and set them to long lifetime. ...
13
votes
6answers
7k views

How can I make kint() load faster when debugging twig templates?

I've seen quite a bit of discussion about how kint() from the Devel module is difficult to work with because it maxes out PHP memory limits and makes the browser drag. I've heard some thoughts on ...
0
votes
1answer
19 views

Drupal commerce and big cart

I'm using drupal commerce for ecomerce project. Shopping cart views with 100-200 line_items renders extremely slow - 5-10sec. How to fix it?
0
votes
1answer
219 views

Managing large taxonomy

I've got a vocabulary with 700 terms and Views term hierarchy weight field enabled (version 7.x-1.6). When adding or movind a term, it starts to recalculate depths for every term, and the "Computing ...
0
votes
1answer
441 views

Search indexing slow query

Drupal 7.x The search module's indexing maintenance sql query takes a couple of minutes to complete each time cron gets triggered. SELECT t.word AS realword, i.word FROM search_total t LEFT JOIN ...
0
votes
2answers
393 views

Change block data with page cache

I have enable page cache for anonymous users and no cache for block. There are some random data in cache that change on every page refresh. Once the page cached by cache_page bin block content is ...
0
votes
1answer
65 views

minihtml is not compress output

I am using the Minify HTML module to compress the HTML output. Once, I enable this module and view my node page, the HTML is not compressed. Is there any additional setting for this?
2
votes
1answer
312 views

What is faster: hook_form_alter or hook_form_FORM_ID_alter?

I want my Drupal site be as fast as it can. So I'm considering whether to use hook_form_alter with an if statement inside or hook_form_FORM_ID_alter. I know that it's a bit more convenient to use the ...
0
votes
0answers
257 views

IMCE with Amazon S3 loads images very very slow

I am using D7 with Amazon s3, imce, imce filefield module to upload images through CKEditor. And when I clicked on image upload button in CKEditor it is taking around 3-5 minutes to load the CKEditor ...
1
vote
0answers
136 views

Performance or other implications of sharing fields in Drupal 8?

There already exists quite a popular question asking about the implications of sharing fields between node/entity types: What's a good balance between reusing fields versus creating new ones in ...
0
votes
1answer
1k views

How can I reduce the initial load of page?

I've been monitoring the speed of my site load on Drupal 7 and I would like to increase its initial loading speed. Currently it takes 6 seconds just to get data from the server. What is the first page ...
1
vote
1answer
120 views

oEmbed Video Module loading via ajax for faster loading [closed]

Is there a module that lets you load in youtube videos via ajax? Currently I'm using oembed module ( https://www.drupal.org/project/oembed ) and it loads in the video js files which take up 1MB. I'm ...
2
votes
1answer
5k views

Leverage browser caching issue [closed]

I added some lines in my .htaccess file, following Is it possible to leverage browser caching?, but Page speed tool still throws "Leverage browser caching error." for only images.
1
vote
0answers
28 views

How to fix the performance issue in views? [closed]

Hi all i am using drupal site,I am suffering a lot with drupal performance issues.Before when click on edit(In VIEWS) it is taking a lot of time by using memcache,entity cache,views lite pager ...
5
votes
4answers
478 views

Installed Boost Caching, but now my dynamic blocks and webforms are also cached

I just installed Boost module for Drupal 7, but now my Webforms and dynamic blocks like commerce shopping cart block isn't working. It's most likely cached, but what are some methods of getting these ...
0
votes
0answers
282 views

Varnish is working but X-Drupal cache is missed

I have configured varnish on a Digital Ocean server and installed Drupal varnish module. I have confirmed that varnish is running but once i do a test on my site using blazemeter.com the server CPU ...
-1
votes
1answer
435 views

View page is taking lot of time to load [closed]

I have developed an application using Drupal 7, where I have created views and it has lots of data. Now its taking lot of time to load the page and all users are complaining about this issue. Can ...
0
votes
1answer
37 views

What is an allternatve approach to many fields in an entity?

I have an entity bundle 'A' that has about 30 fields in it. This is probably affecting the page load performance of any view requiring to load these entities. As an alternative, I was thinking about ...
1
vote
2answers
183 views

Takes too long to render a product display with 6000+ variations

I have a product with several attributes and each one with several options. The total variations is over 6000. The problem is that rendering takes too long. I've enable Devel module and here are the ...
2
votes
1answer
34 views

Remove items from a menu based on node type efficiently

I am trying to remove items from a menu based on the type of node it links to. I'm currently achieving this using hook_menu_link and menu_get_object. I'm running into problems because the size of ...
1
vote
0answers
27 views

What is best practice for the amount of entity bundles, related to performance

My site uses ECK entities In my use case it is easier to work with many bundles under one entity type instead of multiple entity types (because in Panels, Views, Flags, separate entity types require ...
3
votes
1answer
645 views

How to rebuild the theme registry on every page?

I returned to Drupal 7 after a short absence, and couldn't find the option to "Rebuild the theme registry on every page", which is useful while editing templates on a development site. I thought it ...
2
votes
4answers
216 views

Is there a significant performance difference between the Computed Field module and writing code?

When I got started using Drupal 7, I added several fields to my site using the Computed Field module (to calculate age, zodiac sign, and so on). Now that I have been using Drupal 7 for a few years, I ...
1
vote
1answer
22 views

Content created using field and content created using <div>, and effect on website performance?

I am using the field collection module to create my Content. I have 10 text content. For ease of CSS class, I put each content in separate fields and apply the class using the field formatter module, ...
2
votes
0answers
881 views

How to deal with a rules related lock_wait that occurs after a cache clear and results in slow transactions

This application needs to run cron every 15 minutes which results in a cache_clear_all. Whenever this happens hundreds, sometimes thousands, of db_log entries happen for "Cache rebuild lock hit: ...
0
votes
1answer
43 views

Using the Big Pipe approach for listing pages that are driven by Solr Index

We are working on a website where we might end up having thousands/lakhs of nodes. So we are planning on using Apache Solr for the listing pages as well. Having researched a little bit about Big ...
-1
votes
1answer
202 views

Save Nodes with Field collection in a different database

I am trying to node_save($node) in different database. Second DB is clone of first DB. its the part of Archive old content data in different database I am trying with following code $node = ...
2
votes
1answer
490 views

Archive old content data in different database

How can i make archive my old content and save in different db with my cron job. I want to store in different DB because i want to increase my site performance. In drupal 7 what's the best way to do ...
11
votes
1answer
4k views

Field Collection vs. Paragraphs

I used Field Collection in my previous sites and I faced some performance issue, So this time I am looking a alternative for Field Collection. I find a answer Alternative to Field Collection. but I ...
0
votes
2answers
445 views

Drupal 8 serialize selected fields using Serialization

I have a requirement in a project having 350 fields. But when I use views facing a lot performance issues. So in place of reading all the data from individual tables can I use serialization as ...
0
votes
2answers
25 views

Does having too many cck fields negatively affect site speed and performance?

I building a site that could potentially utilize 50 different content types. The most of the content types have more than 40 CCK fields, including multiple field_collections entity_reference. How can ...
0
votes
3answers
1k views

Which method has better performance

I want to update some term id on some node (let suppose 1000 node),My changes is convert all news node with category(term_id) = 3040 to category(term_id)=5). I know I can do it with several methods( ...
0
votes
1answer
60 views

Is Drupal 7 suitable to create Facebook like huge application? [closed]

Is Drupal 7 suitable to create Facebook like huge application that has billions of users and huge data? If yes then, what would be the possible architecture to serve such huge application with Drupal? ...