Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

How does each additional user role affect Drupal performance? Looking for insights from benchmarking (preferred) and/or code analysis.

Specifically:

  1. Do additional user roles impact performance on a per page request basis? (e.g. every page view will be slower for every user, or no?)
  2. Is the performance impact of additional roles proportional to the number of modules installed? (eg performance hit proportional to #roles * #modules, or no?)
share|improve this question

1 Answer 1

I don't have any hard stats but based on several years of experience and knowing how Drupal works I would be extremely surprised if adding another user role made any appreciable difference at the page request level. The only difference will be when a user has multiple roles, but the amount of extra data required per role is tiny.

I have profiled page loads for all sorts of different site setups and never seen an issue relating to the number of user roles.

Having said that, adding extra roles can make administration more complicated, so you won't want to add new ones without a good reason. If you were to create a hundred user roles the main permissions panel would be unusable but I would be willing to bet that the effect on normal page loads would be negligible.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.