Tag1 Consulting

Performance and Scalability Experts

MySQL

Stop Disabling SELinux!

I see a lot of people coming by #centos and similar channels asking for help when they’re experiencing a problem with their Linux system. It amazes me how many people describe their problem, and then say something along the lines of, “and I disabled SELinux...”. Most of the time SELinux has nothing to do with the problem, and if SELinux is the cause of the problem, why would you throw out the extra security by disabling it completely rather than configuring it to work with your application?

Tag1 is Hiring!

Join the leading Drupal performance and scalability company. We architect infrastructures, optimize code and database queries, tune the applications serving web pages, and stay current with the latest performance and reliability technologies. We employee some of the leading contributers to the Drupal framework, including core contributors and contrib maintainers, as well as key members of the Drupal.org infrastructure team. We strive to continuously share our growing knowledge and contribute back performance patches to the larger open source community.

Drupal lookup path

Description:
The drupal_lookup_path function unnecessarily counts all rows of the url_alias table to determine if any aliases are defined. This can be expensive on a transactional database such as MySQL with the InnoDB Storage Engine or PostgreSQL when a website has a lot of aliases. This patch modifies the query to always only return one row, possible because any existing pid will be greater than 0. If no aliases are defined, it will return 0.

Status:
This patch has not been merged into any release of Drupal.

Patch

Syndicate content