Questions tagged [performance]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
1k views

How to enable caching for ajax callbacks, especially for colorbox node?

I am using colorbox node module on my site, and it looks like the ajax callbacks for rendering the node are not cached at all. Tested it with a simple snippet in the node template: <div>...
4
votes
1answer
3k views

Is there any gain using Memcached module when APC is running good on large Drupal 7 site (one server)

I am successfully using the APC Cache module on my prod website (single server). APC is performing good, caching is done very well. I wonder could I gain anything more by implementing Memcache. I ...
2
votes
1answer
118 views

Writing to a drupal table form javascript as fast as possible

I have a table in my Drupal database this is simply a name value pair for each entry. I need to write to this table from javascript and get back as soon as possible. My first attempt was to create a ...
2
votes
1answer
307 views

Performance implications of many user roles

How does each additional user role affect Drupal performance? Looking for insights from benchmarking (preferred) and/or code analysis. Specifically: Do additional user roles impact performance on a ...
3
votes
1answer
135 views

When programmatically adding views, what is a more efficient way to add them other than include them in mymodule.views_default.inc?

I have written a module that writes views programmatically, and my mymodule.views_default.inc file is enormous. Currently there are 150 individual views, and 780 will be the target. But, even with ...
2
votes
2answers
82 views

Is there a reason I need to unset CSS files provided by contrib modules if I have CSS aggregation enabled?

As this question makes clear, stylesheets provided by modules can be unset. Some themes, such as Adaptivetheme 3.x, also provide a GUI for unsetting the stylesheets provided by modules. My question ...
0
votes
2answers
1k views

Drupal response time incredibly slow, but only from some end-users [closed]

I am running across a super strange issue that is killing me. I am seeing response times coming back from my Drupal site of nearly 5+ minutes, but only for some end-users. I have tested and ruled out ...
1
vote
2answers
365 views

When should I not use Views for listing content? [closed]

Views is the most popular module of Drupal 7. I don't doubt it's the best solution for listing content on Drupal, as one of the Drupal strengths. However, Views is not used everywhere. For example, ...
0
votes
2answers
328 views

Scalable way to add custom css/js to a page

So I'm working on a site where the ability to add custom javascript is core to the site's functionality. Right now, I'm using the Code Per Node module to handle this, but I have a feeling it's going ...
0
votes
0answers
149 views

Spam bots hitting user/register non cached pages generate load, how to prevent?

I have SpamBot installed, still bots can hit the user/register page that is not cached by Boost and generate load if they do it recursively. Any tips to prevent them? Or, the only solution is http://...
0
votes
1answer
184 views

Is there an easier way to print taxonomies in the tpl? I get this working code, but it should be a "shorter" way!

After a painful day and a half I get this code, that prints out in my node.tpl.php the taxonomy terms associated to that particular node that the user is viewing. It works just fine. As it is quite ...
5
votes
4answers
2k views

How to get Views caching working with contextual filters?

Using Drupal 7.19 and Views 3.5 cache is not respecting contextual filter argument- it is displaying the same cache result no matter what argument given. How to get this working properly?
0
votes
0answers
256 views

Custom hardcoded functions : in node.tpl.php or theme_preprocess_node?

For a specific content type, I have many hardcoded functions, to format, display my content, use some ajax, JS, etc. I was wondering, for performance, scalability and, more globally, best practice, ...
2
votes
1answer
280 views

What are the performance implications of running a frequent simplenews cron task to send emails?

In the Simplenews docs there is the following tip: The Elysia Cron module (http://drupal.org/project/elysia_cron) can be used to start the simplenews cron hook more often than others, so that ...
2
votes
2answers
9k views

how to gzip compress js/css in drupal 7

My site will run on D7. but it will too slow. i want to compress (gzip) js and css. I have check my site on https://developers.google.com/speed/pagespeed/insights and it will told me for compression ...
2
votes
1answer
2k views

Incredibly slow speed in admin pages

I've been using my 4 year old Mac Book Pro for a development environment for the past few years, and with memory (8 GB) and hard drive upgrades, speed was pretty decent. I just got a new iMac with a ...
2
votes
1answer
1k views

How do I add a checkbox to the performance page and have it repopulate?

I would like to add a checkbox of my own to the performance page in the Drupal administration. I am using hook_form_alter like this: function nci_assay_depot_form_alter(&$form, &$form_state, ...
3
votes
1answer
617 views

Is it possible to run a Drupal 7 site without jQuery? [duplicate]

Possible Duplicate: Remove jQuery and find out what is asking it to be included I'm building a simple site that is focussed on performance and must run well on mobile and other low-power devices. ...
0
votes
1answer
637 views

Performance: is preferable to use Rules or node_presave/node_save/other hook ?

we know that via hook_* we can make everything, but my question is about the use of Rules vs hook_. At high level performance programming hook_ is better that rules, but if we consider a normal level ...
0
votes
2answers
45 views

Separate all my content

I have one page structure. This is my menu: <ul id="creamenu" class="menuHolder"> <li><a id="news-1-menu" href="#/news-1">news 1</a></li> <li><a id="...
1
vote
1answer
379 views

Reduce latency in loading a page in Drupal 6

I have activated cache in Drupal, and the Devel module. The total time in all queries is less than one second, but the latency is 4.34 seconds. Can anyone explain the latency? What happens during the ...
0
votes
0answers
28 views

First site, after content loading

I have a one page template. So, my site is slowly... I use node_load function for all content and want, first css/javascript load, after content load... Is it possible? Any module or other solution?
2
votes
2answers
1k views

Views format: faster fields or rendered entity?

I'm building some views that returns many content types that have different fields, so I'm choosing to display results as "rendered entity" instead of "Fields". I would like to know if there are ...
4
votes
3answers
3k views

Drupal Commerce Caching Modules

I've been trying to improve the speed of my Commerce site with various caching and performance modules. But the general ones recommended don't work or break my site. I can't see anything else out ...
1
vote
2answers
369 views

How can I more efficiently save nodes programatically with my custom module without cron?

I have a scraper I created that aggregates data found on various sites, feeds, and databases. So that I don't hammer the servers to death that I am connecting to I have it set to sleep 5 seconds ...
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 ...
3
votes
2answers
7k views

Drupal sites extremely slow due to cache SELECT-queries

I have multiple drupal 7 sites running on my shared hosting. Suddenly almost all of my drupal sites began running very slow. After some searching I found that I had 132k slow queries of the 140M ...
6
votes
1answer
2k views

Should I stay with Poormanscron or is it worthwhile to set up an external cron?

In Drupal 7 Poormanscron has been made part of core and is the default. I understand that for this to work at all, the site must get regular page requests in order to trigger Poormanscron - but that ...
2
votes
1answer
191 views

Selective CSS Aggregation for fast D7 development performance

On D6, we had the this module. Depite the module's name, it has an hidden extra feature to optimizes all CSS files except for the module or theme being actively developed. This has the benefit of ...
0
votes
1answer
1k views

How to troubleshooting a D7 website that doesn't load (Gateway Timeout)

A website of mine, using D7, suddenly doesn't load. I always receive a Gateway Timeout error. The strange is that with a ftp client I can browse the website as usual What are the steps I should ...
1
vote
0answers
21 views

Drupal Theme Extra Load on a Site

I'd like to know if any extra tpl.php file in drupal theme has additional resourse loading? Will drupal site work faster with less tpl.php files?
0
votes
1answer
178 views

Best way to deal with long list

I've an entity called "guy" with a field "location" and i've 9-10.000 location that i want to reference. I must use a simple list (1|bla, 2|blabla) or an entity reference field that target the ...
1
vote
1answer
600 views

Drupal 7, Dev Site, will not Aggregate Javascript or CSS

I have two installations of the same site. The first is sub.website.com, and is the main website. The second is sub.website.com/drupaldev. On the /drupaldev site I cannot get the javascript or CSS to ...
5
votes
1answer
853 views

What is the default behavior of the Drupal 7 cache?

I can't find any specific documentation explaining how the default caching mechanism in Drupal 7 works and when does it clear caches automatically. From my own testing, I can state the following: ...
10
votes
1answer
5k views

Which is more performant: entity_metadata_wrapper or field_get_items?

To get values from entities, there are two ways: Use field_get_items and get the value of a field Use entity_metadata_wrapper and get the value of a field Although entity_metadata_wrapper abstracts ...
30
votes
4answers
5k views

Memory-saving cache-clearing strategies for large sites?

One of my Drupal 7 sites has thousands of fields, a bunch of content types, more than 25 views, and hundreds (soon to be thousands) of profile types. Because of this, I'm using a core patch that ...
0
votes
1answer
205 views

Devel user & decrease number queries

I'm trying to decrease the number of my queries with the devel module but I have two questions. 1) Why do I have 281 dblog_watchdog queries? How can I get rid of them? Why should I keep them, I ...
0
votes
1answer
1k views

Admin pages including content edit are exremely slow [closed]

I am using latest 7/16 version of core and complicated field collections with all kind of stuff. The problem is it takes up to 1 minute to load all kind of pages in admin section. All dev modules and ...
1
vote
1answer
539 views

commerce drupal 7 cache module suggestion

Any experiences of suggestion about what cache module to use in with a commerce store? I have been researching about it and I cannot find any suggestions or problems that you can face when using ...
0
votes
1answer
45 views

What database table can be emptied in order to make database lighter?

Are log files in drupal take a lot of space? I want to create a dump file but it's over 1000mb. What tables can be harmlessly emptied from the database directly or through drupal interface?
0
votes
1answer
916 views

Memcached tuning

Does the memcache module works by default after instalation (by setting up the $conf['cache_inc'] in the settings.php file ) or it needs some other tweaks or some custom code? I have memcache up and ...
3
votes
1answer
241 views

What is the correct workflow for updating a high traffic site?

I launched a site based upon Drupal 7.14 with at least 100 simultaneous users accessing the site at all times. From the Devel module, I see that every page is generating about 200 to 400 Mysql ...
3
votes
1answer
2k views

Boost VS Drupal Cache

I'm using Boost and Drupal internal cache on two different websites and i m remarking that the site with internal cache is more quickly than the site with the Boost module . So I'm asking which ...
3
votes
2answers
219 views

Disable user_node_load

Is there a way to disable user_node_load on non-admin pages without hacking core modules? My theme doesn't use user data so this function results in needless database queries.
0
votes
2answers
3k views

how to cache my site background image? [closed]

I am using an image as my site background that is of size 2.7MB. Because of its image size alone it takes 7+ seconds for the page to load. Question: Can/How do I cache this background image at user's ...
2
votes
3answers
3k views

How can I have the JS/CSS cache refresh on every page load?

How to clear cache on every page load? I am doing CSS & JS theming and currently having to manually clear cache (using devel module) every time and then reload the page again to see my changes? ...
0
votes
1answer
454 views

Why Drupal 7 takes too time in connecting to mysql db? - measured with xdebugger

i have drupal 7 on localhost (core i7 - 12gb ram etc) on Nginx with APC and mySql on windows7. standard installation with standard theme and a bounch of new modules. about NO content. The problem is ...
2
votes
2answers
870 views

Acquia stack / Wamp slow on response

I am developing a site on my localhost. I used WAMP but it takes too long to load pages from time to time. Something like 20 seconds execution time according to devel. Not on every page, not every ...
9
votes
3answers
3k views

How can I upload 1000s of nodes per hour to a live drupal 7 site and avoid deadlocks?

Not too long ago I wrote about deadlock here: PDOException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; Despite everything my development team tries to do, we ...
3
votes
1answer
896 views

Long time of node_submit + node_save [closed]

I measure time of my batch node creation and it's fairly acceptable at the beginning with, let's say 200 nodes, and totally disappointing at 1700 nodes. After some measurements I found out that the ...

1
5 6
7
8 9
11