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.

0
votes
1answer
20 views

Do custom theme suggestions execute on every page load and does that impact performance?

I've been working with Drupal for a little while now and one nagging question I've had is about whether or not logic in my *.theme or *.module files have any impact on server load. Let's say I have ...
0
votes
1answer
51 views

Create the FooTable functionality by using only views

I noticed by using FooTable display on one of my view on a Drupal 8 site, it is increasing the load time of the view by more than 2000 ms. The main idea i am using Footable is because of the ability ...
0
votes
0answers
62 views

Loading a view page is very slow

On Drupal 8.7.3 and a very powerful VPS server with php 7.2, I have a view (page) that will list all available nodes of a specific content type. The display of the view is "Footable" taken from the ...
3
votes
0answers
100 views

Warming up dynamic page cache for authenticated users

We're currently working on a rather complex Drupal 8 based website. After clearing caches, the majority of pages/routes require about 30-60 seconds for being rendered/returning the desired results. ...
1
vote
1answer
68 views

How to make use of the render placeholder system for cacheablejsonresponse?

I have custom controllers which provide CacheableJsonResponse responses. Those responses are quite heavy to build (couple of seconds), so I want to build them better. I build those responses by ...
0
votes
0answers
34 views

Overload Site with Database Inserts to cache discovery

In my production enviroment i have a problem with the performance of my site, this begin to execute many request to database, when I see the process list of the database y see many process with ...
0
votes
1answer
149 views

Serve compressed JS and CSS with S3 as filesystem

We have a Drupal 8 site using S3 file system integrated via the S3 File System module. The aggregated CSS and JS are uploading on S3, however I am not seeing any configuration to serve compressed ...
-1
votes
2answers
79 views

Database Insert Slower On Production Server [closed]

I recently upgraded the PHP version to 7.1 on my production server. I also updated my local to 7.1 and staging to 7.1. Only on production, I am seeing a slow down when I import a csv file and insert ...
0
votes
0answers
35 views

Solr-based View, Row cache

Context: Drupal 8.5, Search API Solr 2.2 There's a Solr-based view with Field display mode, as the results are not just nodes, there are non-Drupal content too. Right now the dynamic page cache is ...
1
vote
1answer
79 views

How should I deal with a vocabulary with many terms?

I'm trying to use Drupal 8, but if Drupal 7 is better for that, I'm ready to go back to Drupal 7. I have a vocabulary that must contain at least 10,000 terms, but they can also become more than 100,...
0
votes
0answers
51 views

Very slow menu_tree_check_access query - how to debug

I have a Drupal System which is running fine in production and locally but the dev/cons Db seems to have a problem. After looking a bit deeper into it I found that menu_tree_check_access takes 3.8 Sec ...
0
votes
1answer
30 views

db_insert a lot of records

I am struggling to sort out how to insert a lot of records using db_insert Please see below for the code. I can't have a for loop in the array. It breaks but I am dealing with looping through a lot ...
1
vote
1answer
121 views

Increasing performance of cache_form on high traffic sites

I am noticing a significant performance increase in my load testing when this table is small, but due to a large traffic site this is growing very quickly. I have read that it is not a good idea to ...
2
votes
1answer
75 views

Serve Anonymous Pages when users are logged in for some pages

so essentially I have a Drupal website with great performance for anonymous users and terrible performance for logged in users. What I am looking for is a way to serve some pages that logged in users ...
1
vote
0answers
24 views

How can I drill down to find the culprit function? [closed]

I can see high CPU usage when I hit search URL of my Drupal application. I have enabled XHProf module and UProfiler extension on PHP5.6 to find the culprit function. But the report I am getting is ...
2
votes
1answer
441 views

remove link tags in head

I am working on a project involving migrating a site with many static pages to Drupal 8. Since a number of the pages are old blog posts, there's often broken links, broken images, etc. For quality ...
1
vote
0answers
26 views

Page not found errors for images

The site becomes painfully slow at times and when I look into "Recent Log Mesaages" logs such as this is frequently found. The Location shows: http://example.com/sites/default/files/styles/featured/...
1
vote
1answer
50 views

Is it better for performance to disable unused default core views?

I'm seeing 5 views on my site that I'm not using and want to disable to keep things clean and performant, but I worry it could cause a problem somewhere down the road. The views are: Frontpage (...
0
votes
4answers
2k views

Performance is notoriously slow

This feels like a repeat post but I can't find an actual answer. I just installed Drupal 8.4.4 on an Azure App Service (S3 Standard 4core 7GB RAM / PHP 7.0.6) and Azure Database for MySQL (Standard ...
0
votes
1answer
169 views

How to change URL images for CDN

I have a website in Drupal 7 with "N" images in Sites/default/files and I need move this images to CDN. This is possible? How can I do? Best regards!
0
votes
1answer
56 views

Hundreds of unserialize requests

I have a large Drupal 7 website on my hands that is very large and has loads of modules (over 200). I am already seeing poor performance symptoms in the FPM logs with max_children limits reached on ...
0
votes
0answers
262 views

Performance hit from using the Statistics module?

For a site that we will have 99% of users seeing Varnish/Memcached layers, what is the general performance hit to enabling the core Statistics module? The site may have thousands of visitors daily. ...
4
votes
1answer
476 views

Improve D8 performance to access a custom REST controller

Context I'm currently upgrading a site from Drupal 7 to Drupal 8. In the D7 version, there was a custom "proxy" module which served back-end services. Requests starting with a /service prefix, such ...
0
votes
1answer
300 views

Does disabling ini_set() affect performance?

The server administrator deactivated ini_set() and believes that activating it is very effective in server security, and I receive the following warnings on my websites. Warning: ini_set() has been ...
-1
votes
3answers
2k views

Slow Drupal 7 Load Time

I have a 10 second page load time on Drupal 7.52. It has the approximately the same problem on localhost and my server. On my localhost (WAMP) Apache uses an insignificant amount of CPU (3% or less)....
3
votes
2answers
348 views

Rules: Load List of Entities by Object or Entity ID (Performance)

I'm looking to load a list of Users by an Entity Reference Property within Rules. There may be times when I need to load hundreds or thousands of Users that have a matching Property to update a ...
0
votes
1answer
71 views

Nightly truncating all cache_* tables? Good or bad?

I'm having some issues on various D7 sites with some cache tables growing stupidly large (e.g cache_metadata or cache_menu) which then makes drush cc all very slow (more than 1 minute). Do you think ...
1
vote
2answers
154 views

How do I setup Drupal/Varnish caching so Content Editors don't see browser-cached pages after logging in?

I've got a bit of a situation going on with our caching solution and would love some input. We use a solution of HAProxy -> Varnish -> Apache. HAProxy terminates SSL and sends that to Varnish which ...
0
votes
1answer
81 views

Most performant way to check if a user is referenced in any node of a specified type?

I need to get a list of all users that have a specific role. Those users can be referenced in a multivalue field of a specific content type; some users are referenced in multiple nodes of that content ...
1
vote
0answers
23 views

Site flashes intermediate 'Redirecting to …' page

On a local development site an intermediate 'Redirecting to ...' page flashes for a second before rendering the correct page. This seems to be happening at various places, even on cron run page. The ...
-1
votes
1answer
18 views

Image Optimaization

Dears, i have images with 2000 * 700 pixel and i have to render those images in two different places one with original diminution while the second is with 100 * 60 pixel so each time i have to load ...
3
votes
0answers
259 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
466 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
240 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
140 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
48 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
34 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
782 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
95 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
49 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 ...
2
votes
2answers
413 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
235 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
52 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. ...
3
votes
3answers
2k views

Difference between drupal_static and \Drupal::state?

Imagine I have a hard to compute function or value. $my_heavy_value = function($val) { // Hard to compute value. return strtoupper($val); }; What's the difference at performance level between ...
-1
votes
1answer
285 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
113 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.
2
votes
1answer
336 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.