Questions tagged [performance]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
692 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 ...
3
votes
1answer
655 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.
0
votes
1answer
373 views

Turn off cron and hook_cron for every module in Drupal

How can I turn off cron and disable implement of hook_crons in every modules in Drupal my site is Drupal 6 Thanks
3
votes
0answers
35 views

How do I safely mark the listener as passive and keep it working? [closed]

I'm trying to optimize the website performance according to the Google PageSpeed recommendations. One of the advices is to set touch and wheel event listeners as passive, which is shown for the core/...
0
votes
0answers
73 views

Sharing Heavy Operations between multiple Page Elements

I have a page with two separate page elements. One is a table-select form that shows an extensive list of content data. The other page element is a block that shows a summary of that same content. ...
0
votes
1answer
620 views

Enabling aggregate and compress CSS files resuls in vanishing theme

I used this module for more compression on css and js files but it does not work for me! so I disable and remove it entirely. After that when I enable aggregation of css and js files, my site's theme ...
1
vote
1answer
372 views

Alternative to .htaccess compression with Boost

My hosting provider doesn't support mod_deflate directives in .htaccess to provide compressed HTTP responses. I am using Drupal 7 with Boost and wish to compress HTML, CSS and JS responses. Is there ...
0
votes
2answers
509 views

Serialize selected fields

I have a requirement in a project having 350 fields, but when I use views, I am facing a lot performance issues. So in place of reading all the data from individual tables, can I use serialization as ...
0
votes
1answer
390 views

Updating few thousand nodes in one time

I have script which updating 2000-5000 nodes in loop and performance is poor. At the moment the code looks like: foreach($nids as $nid) { $node = node_load($nid); // updating $node fields ...
2
votes
2answers
140 views

Is it helpful to improve performance by mysql table indexing?

Yes I am talking about manually indexing drupal cache table. Is it helpful to improve site performance by indexing cache table? For ex:: SELECT cid, data, created, expire, serialized, tags, checksum ...
0
votes
0answers
25 views

Possible to get a render array from a loaded entity without calling ->getViewBuilder()->view()?

I'm working on the performance of a code block that contains 3 lines that are the main contributors to latency: A paragraph library item is loaded from the DB A paragraph is loaded from the DB using ...
0
votes
0answers
36 views

How do I profile a REST API request from the Simple oauth module?

I am trying to profile a REST API endpoint (/oauth/token) for performance issue. I want to see what database queries are executed during that API request. Can I get it using webprofiler with the Devel ...
5
votes
1answer
7k views

How much RAM does a basic installation need?

I am looking to downgrade from a dedicated to a VPS server (several, to spread it out) and was wondering if 512MB will do? I have Boost with all core caching enabled, and mostly anonymous traffic.
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 ...
1
vote
2answers
68 views

How can webform performance be improved on low internet connection?

I built a site with Drupal 9 and webform. The form consists of three pages and contains a few computed fields. On the first page are mandatory fields. The form is used by logged-in users only. When on ...
0
votes
0answers
45 views

Adding a dependent field with the Business Rules module makes the loading time and queries increase abnormally

I have an entity form with a dependent field. The dependent field is created following this guide and using Business Rules module. Everything works fine, but now the form takes an insane amount of ...
3
votes
0answers
35 views

Speed up login after changing user name datastore type to VARBINARY from VARCHAR

We have a project underway that requires the import of ~6 million users into Drupal (Core 7x) that have many (150K+) case-insensitive duplicate usernames. Importing these users with existing case and ...
0
votes
1answer
335 views

How do I set the height and width for images that use a responsive images style?

When using the core Image module, the height and width of images are automatically set. But when I use the Responsive Images module and a Responsive Image style, then no height or width is set. Users ...
0
votes
1answer
44 views

ExtensionDiscovery::scanDirectory() takes too long

I have been debugging a bit an issue on our platform and I notice that our scanDirectory takes, from time to time, way to long, more than 100seconds. I have been looking at the default.settings.php ...
3
votes
3answers
829 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 ...
0
votes
0answers
40 views

Implementing hook_entity_type_build causes 500 error on cache clear

I recently attempted to display custom form modes based on the currently logged in user. My searching led me to implement hook_entity_type_build. However, I am finding that even just having this ...
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
0answers
34 views

For performance, one multi-value field or four individual fields?

I have a node content type that needs to store four different int values: Score A Score B Score C Score D Each node of the content type always has all four int values. I could store this one of two ...
1
vote
2answers
787 views

How do I setup Drupal with EC2 scaling?

I want to scale my Drupal site and I was wondering how to approach it with Drupal and Amazon EC2. This is a bit related to How to use Drupal in the cloud with on demand instances. With Amazon, I can ...
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 ...
0
votes
1answer
114 views

The “Modules” page doesn't load

I am running a setup on Ubuntu and WSL (Windows Subsystem for Linux) with Nginx and PHP7.4. Drupal 8 and Drupal 9 fresh installations load every page with no problem, except the page on /admin/...
0
votes
0answers
20 views

Select which assets and scripts should load on certain pages

This is to avoid loading other assets and scripts that are not needed for certain content types, pages, etc. I have seen this in wordpress, there are performance plugins that allow you to selectively ...
11
votes
2answers
10k views

Are there any performance comparisons?

Are there any reliable performance comparisons between vanilla Drupal 8 versus Drupal 7? I have searched the web but only find the post "Drupal 7 vs Drupal 8 Performance Comparison", which is far ...
0
votes
1answer
123 views

Advanced CSS/JS Aggregation Module Breaks My Site Layout

When I enable my module Advanced CSS/JS Aggregation it breaks my site layout. Is there something I need to do before or after when enabling this module. To fix the site layout I need to disable the ...
0
votes
1answer
4k views

localhost runs site extremely slow [closed]

I have a Windows 7 computer running MAMP and it works fine, although still a little slow. I have been working on a Druapl site for a few months now and normal page load times are around 3 seconds. I ...
47
votes
5answers
97k views

Nginx vs Apache - Are there any actual usage comparisons and statistcs out there?

I have a new server to play with, and I am staring at a blank canvas. I can put anything I want on it. While I am comfortable with Apache, I keep hearing how nginx can handle so much more traffic than ...
0
votes
3answers
2k views

Advagg and Nginx

I have the following errors displayed on my status report page: Adv CSS/JS Agg - HTTP Request HTTP requests to advagg for js files are not getting through. AdvAgg will issue a request for a file ...
1
vote
0answers
210 views

Diagnosing slow requests between Varnish and Nginx

I have been trying to diagnose slow page load time in my local Drupal 7 environment when using Varnish. My local environment runs in Docker using docker-compose. I have a containerised Varnish ...
18
votes
3answers
23k views

How to get rid of Deadlocks and Lock time out type issues?

I read multiple blogs, tried to google, it but didn't find any satisfaction from any solution. I have the following issues : PDOException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found ...
1
vote
2answers
2k views

Memcache Slowing Down Drupal

Running seige (load tester) without memcache enabled I see stats similar to this: Transactions: 560 hits Availability: 100.00 % Elapsed time: 59.42 ...
92
votes
9answers
8k views

Do non-enabled modules affect performance?

Does having Drupal modules present, but not enabled have any effect on the performance of a Drupal site? To put it another way, would removing disabled modules on a Drupal site have a positive affect ...
5
votes
1answer
1k views

Why does loadMultiple load 1000 nodes 9.2 times faster than loading each node one by one?

I have always known that loading multiple nodes at the same time is faster than loading them one by one. What I wasn't aware of, is the huge performance difference between the two ways of loading ...
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 \...
3
votes
1answer
93 views

How do I free the memory used from node_load()?

I am using code similar to the following one. for ($i = 0; $i < 1000000; $i++) { $nid = get_node_id($i); $node = node_load($nid); $data = [ $node->field_1, $node->field_3, ...
1
vote
1answer
33 views

How does routing order / matches effect performance?

I have all the following GET routes defined in my_module.routing.yml: my_module.members_uid: path: 'users/{user}' my_module.members_uid_gid: path: 'users/{user}/group/{group}' my_module.user....
1
vote
1answer
458 views

How do I explain the large difference between page execution time and reasonable query execution time?

I believe that one of my websites is running rather slowly. I have done nothing different than I have on other Drupal websites that I have done that are running on different servers and that are ...
1
vote
2answers
2k views

How to set up APC on Drupal 7 with httpd + fastcgi?

Can you recommend how to set up APC for a site running Drupal 7 on apache2 with fastcgi ? I got to the point where apc.php shows only one file cached that is apc.php itself. I cannot see if APC cache ...
0
votes
1answer
524 views

improve drupal 7 multisite performance

I think this has to be performed when the project is starting and not when the project is running, but, I don't decide that. I'm only the developer. I read a lot about performance in Drupal 7, and I ...
0
votes
1answer
346 views

Why does Apache show such drastic differences in memory usage when using mod_php?

I've taken steps to reduce as much as possible the memory footprint of my Apache mod_php processes by disabling Apache modules as well as Drupal modules. When the server is under light load, I see ...
1
vote
0answers
44 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/...
3
votes
3answers
812 views

Do I have to unistall the disabled modules?

I'd like to know if there is any difference between disable or uninstall modules regarding performance. Will having 10 disabled modules affect my site performance? Will the performance be better if I ...
-1
votes
1answer
82 views

Are static html pages required to build a Drupal

Are static html pages required to build a Drupal based social networking site or should I go about creating content (views or modules etc) and assigning regions to them. I have already created a theme ...
0
votes
1answer
356 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. Is this possible?
1
vote
2answers
194 views

How to achieve clean HTML markup?

If you visit official website of Dries Buytaert https://dri.es/ and look into the source you will see very clean and minimal markup with no unnecessary tags and classes, eg: When I create a simple ...
0
votes
1answer
31 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 ...

1
2 3 4 5
11