Questions tagged [performance]

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

Filter by
Sorted by
Tagged with
2
votes
2answers
603 views

How to delete nodes without taking a lot of time?

My site has about 200 000 nodes. When I want to delete let say 200 nodes it takes about 2hr. I have also installed commerce module, views and a lot of the usual modules. What can I do to speed things ...
2
votes
0answers
265 views

How do I get queries and query count for a page?

In Drupal 7 the query log of the Devel module contained a table which had a query log with a much better overview than what Webprofiler is offering for Drupal 8. In Drupal 8 there's no aggregation or ...
1
vote
0answers
59 views

How do I call a PHP function in all the pages? [closed]

I used the Boost module for performance issues, and it creates _.html files every time it serves a file from the cache. I need to write a PHP function it should call every page, even the cached ones. ...
4
votes
3answers
3k views

Difference between drupal_static and \Drupal::state?

Imagine I have a hard-to-compute value. $my_heavy_value = compute_heavy_value(); What's the difference, at performance level, between storing the computed value using drupal_static() and using \...
-1
votes
1answer
328 views

How to improve the speed of drupal website [closed]

I have tested my site with testmysite.thinkwithgoogle.com. I got the below report. Speed test score for mobile site and desktop site are not good. If you could help me pointing to right direction to ...
1
vote
1answer
139 views

Is there any way to “linux nice” a process to have less priority

We have some high resource views that would have less impact on the overall performance if they ran at a low priority, e.g. linux nice'd to a low priority.
3
votes
1answer
492 views

how to optimize inline images in ck-editor

Is it possible to optimize inline images uploaded via ck-editor. There is an image with size 11 MB and in default behavior its rendered original without any optimization applied to it.
1
vote
1answer
326 views

Improve extremely slow 'drupal_process_form' [closed]

I am having problem investigating why our profile edit page is damn slow. Call Stack # Time Memory Function Location 1 0.0003 276344 {main}( ) ...\index.php:0 2 1.6889 39666816 ...
1
vote
1answer
87 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
22 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
809 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
155 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
88 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 ...
2
votes
1answer
650 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
101 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
6k 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
65 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
22 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 ...
4
votes
2answers
416 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
747 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
80 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
400 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
1k 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
104 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
304 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. ...
16
votes
8answers
10k 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
20 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
251 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
575 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
455 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
69 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
362 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
290 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
152 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
158 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
6k 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
543 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
301 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
526 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
206 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
36 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
29 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
813 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
222 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
23 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
950 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: ...

1
2
3 4 5
11