Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 31

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

1 vote
Accepted

Performance of site when loading 3000+ variables

Yes, large variable tables are a problem. Variables should only be used for small configuration flags and settings and not to store large structures for example. But given a large amount of modules, …
Berdir's user avatar
  • 83.5k
1 vote

performant way to load many complete node-objects

There is no other way that I know of in Drupal 6. Drupal 7 has node_load_multiple(), which allows to load multiple nodes in a single query (+ hooks, which can also do single queries for multiple node …
Berdir's user avatar
  • 83.5k
3 votes
Accepted

Theoretical limits of CCK (Field API) unlimited Multi Value Field - 170 000 values

No chance, hiding doesn't help, drupal will still load all values even if the field is hidden. You could add the reference field on the item type and then load them through a view. Or use the rela …
Berdir's user avatar
  • 83.5k
14 votes
Accepted

file_scan_directory() takes about 10 seconds to execute

It sounds like you're affected by a known issue in Drupal 7. Most probably, you are hitting Avoid re-scanning module directory when multiple modules are missing. It happens if you have some missin …
Berdir's user avatar
  • 83.5k
5 votes
Accepted

What is the performance impact of modules that use Field API instead of a custom way of acce...

The advantage of field API is that the storage is pluggable, so you could for example use it together with MongoDB which could possibly drastically improve the performance, with some drawbacks however. …
Berdir's user avatar
  • 83.5k
12 votes
Accepted

Caching the Drupal bootstrap

After looking at the numbers above, I imagine that the performance gains of doing this in Drupal 7 would be quite a bit smaller. … That one pretty much undoes all the performance work that went into Drupal 7. Let's see how it looks in Drupal 8, if Twig makes it into core. Lastly, about the mentioned advantages. …
Berdir's user avatar
  • 83.5k
1 vote

Drupal 6 with mongodb, any success?

MongoDB is not a full replacement for MySQL, you still need it. You can only move certain pluggable systems to MongoDB, like sessions, watchdog and in Drupal 7 also the field storage.
Berdir's user avatar
  • 83.5k
12 votes

load balancing multiple horizontal drupal instances

Having multiple webservers behind a load balancer/reverse proxy is quite common for Drupal and well supported. Varnish is typically used in the Linux world because that thing is just insanely fast whe …
Berdir's user avatar
  • 83.5k
27 votes
Accepted

Are there any performance comparisons?

However, D8 has a number of things that are hopefully going to make more than up for that on real sites Javascript by default runs in the footer, which improves front-end performance, as pages build … Also keep in mind, if you care about performance, then you're very likely not running vanilla D7/D8 sites, you have large sites with a lot of content. …
Berdir's user avatar
  • 83.5k
4 votes

Why /Drupal\Core\Form\FormBuilder->renderPlaceholderFormAction is taking so long?

Pretty sure that report is bogus. That's just an arbitrary method, not a controller. They somehow identify that as the controller for that request but of course that doesn't make sense. That page li …
Berdir's user avatar
  • 83.5k
4 votes

Should one avoid lots of use statements in a custom modules .module file?

But also here, the argument is most likely not going to be runtime performance, parsing code is really, really fast. … It's your performance in understand the code, finding bugs, writing test and so on. Optimize for that. …
Berdir's user avatar
  • 83.5k
7 votes
Accepted

Microkernel with low bootstrap level?

A lot of the bootstrap process happens now implicitly as services are requested. If nothing requests the database service then Drupal won't open the connection to it and so on. The minimal amount of …
Berdir's user avatar
  • 83.5k
25 votes
Accepted

What's a good balance between reusing fields versus creating new ones in the context of fiel...

The amount of data in a field usually isn't a problem. If you're worried about that, look into alternative field storage plugins or write your own. For example MongoDB, which can deal with pretty much …
Berdir's user avatar
  • 83.5k
6 votes

Data coming from entityTypeManager->getStorage is cached data?

load() and loadMultiple() are cached, loadByProperties() is a shortcut for an entity query + load, the entity query is not cached. Do not use loadByProperties() if you know the entity ID.
Berdir's user avatar
  • 83.5k
4 votes

What's the fastest method/implementation for an Ajax callback?

A bit late, but especially if you are using that ajax callback for polling (check for new messages for example), there is an interesting alternative: Drupal node.js integration. Instead of polling, i …
Berdir's user avatar
  • 83.5k

15 30 50 per page