Questions tagged [performance]

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

Filter by
Sorted by
Tagged with
3
votes
0answers
365 views

Forms get glitchy with too many nested paragraphs

We have built a complicated structure for building pages out of paragraph components, but are now quickly running into performance limitations. It seems that the node form is monolithic, and is built,...
0
votes
1answer
830 views

Data coming from entityTypeManager->getStorage is cached data?

I am working on one Drupal 8.3 site. I created my own custom Authentication provider for REST API authorisation. Following are the "authenticate" method sample code. /** * {@inheritdoc} */ ...
-1
votes
1answer
17 views

How do uploaded photos and files impact search performance?

I am creating a Drupal site where performance is a key goal and have a few questions: Does Drupal store the photos in the same table as the rest of the node's fields? Will enabling photo uploads on ...
0
votes
1answer
24 views

Checking site performance on remote vs. locally [closed]

I had read a blog article recently describing how to set the settings on your local host to be a reasonable comparison to a remote host in order to test Drupal configurations and performance issues ...
0
votes
1answer
395 views

Microkernel with low bootstrap level?

Drupal 7 had a neat feature of different bootstrap levels that allowed to write really fast micro services that didn't require to fully bootstrap Drupal. Drupal bootstrap levels no longer exists in ...
1
vote
0answers
156 views

What is the performance impact of having many modules in D8?

I like to keep my custom code as separated as possible (in the way it makes sense). In D7 I know it could be crucial (source) because every module used it's .module file and since module files getting ...
1
vote
1answer
71 views

What does “Prefetch views unpack data” in APDQC module do?

There is an option in the APDQC (Asynchronous Prefetch Database Query Cache) https://www.drupal.org/project/apdqc module for: Prefetch views unpack data It's unclear what this does. Should this be ...
3
votes
1answer
96 views

Is putting content in the codebase or the database better for performance?

I recently created a website footer using a block template. Some of the footer's content was entered through the block's wysiwyg (stored in the database), but other code-heavy elements were placed in ...
1
vote
0answers
35 views

Speed up AJAX loading on manage display page when moving fields among regions

When I'm switching my fields into different regions, it takes at least 20 seconds to make it change. I'm not able to change any other field while I wait. The only work around to this was to disable ...
1
vote
2answers
1k views

How to implement a searchable addresses database (for a form)?

I'm not sure if I should ask this type of question in this site, but I already tried to ask in the Drupal forum here with no reply so far. I'm trying to find out the best way to implement a solution ...
0
votes
1answer
143 views

Drupal 8: Performance Impact of frequently clearing all caches

I have a relatively large production site that uses some custom views to filter by taxonomys and other factors through dropdowns. I have come across the issue that adding a new taxonomy does not allow ...
1
vote
1answer
62 views

Drupal 7 Breaks CSS Rule Ordering Standards when CSS Aggregation is Turned On [closed]

Drupal 7 has an interesting bug (some may consider this a feature) when rules are included before an external CSS document is included using @import. The CSS Aggregation engine will let you "bend the ...
3
votes
3answers
832 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
273 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
60 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
4k 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
334 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
173 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
658 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
369 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
93 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
23 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
172 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
89 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
662 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
107 views

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

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
8k 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
68 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 ...
5
votes
2answers
488 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
807 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
92 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
429 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
109 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
309 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. ...
17
votes
8answers
12k 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
21 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
273 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
693 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
494 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
70 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
377 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
306 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
163 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 ...
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.
5
votes
4answers
572 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
305 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
2
3 4 5
11